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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submitting a form but first opening a new window

Status
Not open for further replies.

zubz

Programmer
Mar 29, 2005
14
GB
Hi,

basically i have a form. when i click the submit button and want to open a new window and have the form variables posted to it? Is this possible using javascript?

If so does anyone have an example of how i can do this?

Many thanks
 
Or you can use the window.open command and pass the parameters in the URL.

Cheers,
Dian
 
Although if the data is more than around 1K or so, the URL method will most likely fail in a lot of browsers - so setting your form's target to be a new window (and yes - you can target popup windows) would be a better move.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top