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:

  1. Thanks for the simple and short code

    ReplyDelete
  2. Works great. Thanks

    ReplyDelete
  3. 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!

    ReplyDelete
  4. Thanks for your code. You saved my life!

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

    ReplyDelete