Click to See Complete Forum and Search --> : Submit in window.open


sweepnet
11-13-2003, 05:04 PM
Hello.

I am opening another window with a sweepstakes that
I want to enter, then allowing a fill program to put my info
into the appropriate boxes, then want to hit the submit
button.

Sequence

I have - open new window with with URL
I need - delay 5 seconds, then hit the submit button in
the opened window.

Anyone have any ideas, or where to look?

Thanks

Bob

Khalid Ali
11-13-2003, 05:45 PM
read up on
setTimeout() function
at
http://devedge.netscape.com

sweepnet
11-13-2003, 06:00 PM
Thanks!!

I had that function, the delay isnt the problem. Iam
sorry, I should have been clearer, the problem is the
remote submit. Hitting submit on the form in the other
window.

Thnx

zachzach
11-13-2003, 06:25 PM
in the main window, use this code:

self.name = "Mainwindow"
[code]

...open the window...

...and in the opened window use:

[code]
Mainwindow.document.FORMNAME.submit()