Forum Moderators: open

Message Too Old, No Replies

Making Form Submit open to a new window

         

pblancher

12:56 am on Jun 7, 2006 (gmt 0)

10+ Year Member



I'd like to have a form for people to sign up, that when they click on submit, a new window 200px by 200px pops up and that would have the actual information in it from the form posting. Suggestions to where I can find the info on this?

thanks

kaled

8:57 am on Jun 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Create the popup using the onsubmit event and specify the name of the popup as the form's target. However, I'm not sure what effect popup-blockers would have. (Also, be sure to return true in the onsubmit event code.)

Kaled.

castanet

3:32 pm on Jun 8, 2006 (gmt 0)

10+ Year Member



Use a php form processor. There are loads that return the form comments after submission.

whoisgregg

3:50 pm on Jun 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd suggest using target="_blank" in the <form> element, then have javascript in the target page that resizes itself. It will be less complex and will still open a new window for non-javascript folks.

wmuser

9:24 pm on Jun 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would use target="_blank" too