Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i sumit a form

Status
Not open for further replies.

inusrat

Programmer
Feb 28, 2004
308
CA
Hi,

I want to execute the following code that opens a window with specified URL and close it after certain time. Problem is I not only want to go to the sperciied URL but want to submit a form along with that too, Is it possible to do that?



<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
closetime = 10; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}



function doPopup() {
url = "width = 370; // width of window in pixels
height = 308; // height of window in pixels
delay = 10; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
// End -->
</script>

 
>>submit a form along with that too

that depends on the page that you are calling, are you controlling that page???

Known is handfull, Unknown is worldfull
 
ah, then i am afraid that cannot be done...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top