LendKey

Friday, June 6, 2008

Submit form to a popup window

Sometime, when submit a form, you wanna open a new popup window and show submit result there.

Here's the code that can do the work:

<form action="report.html"
where the form will be submitted to
target="report"
name of the popup window
onsubmit="window.open('about:blank','report','width=300,height=200')">
open a new window that has the target window name and expected window size first.

It was tested in Firefox 3.0 Beta, IE 7, Opera

7 comments:

Anonymous said...

Thanks for the simple and short code

Anonymous said...

Works great. Thanks

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

Unknown said...

Thanks for your code. You saved my life!

adasd said...

Hey thank u soo much

Ruth said...

Thanks for your code..
It doesn't work in safari.. can u pls help me on this to work on safari ?

Anonymous said...

tanks!!
the best