How to open a new window on form submit?

The code you have given, needs to be corrected. In form tag you have to enclosed the onClick attribute value in double quote: window. Open('google.

Htm','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,status=no') You also need to take care that first parameter of window. Open should also be enclosed using quotes.

The code you have given, needs to be corrected. In form tag you have to enclosed the onClick attribute value in double quote: "window. Open('google.

Htm','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,status=no');" You also need to take care that first parameter of window. Open should also be enclosed using quotes.

Onclick may not be the best event to attach that action to. Anytime anyone clicks anywhere in the form, it will open the window.

You have to add a target=_blank attribute in your form tag.

If you add the target=_blank, you don'y need the onClick event. – Hugo May 22 '09 at 7:48 This is still wrong, for multiple reasons. Most of the quoting's missing, and it will fire anytime the form is clicked for any reason, not only at submit.

– Matthew Flaschen May 22 '09 at 7:50.

Window. Open doesn't work across all browsers, Google it and you will find a way of detecting the correct dialog type. Also, move the onclick call to the input button for it to only fire when the user submits.

Onclick on the input button is wrong. Then, if the user clicks it, but moves away before releasing, it will still fire. – Matthew Flaschen May 22 '09 at 7:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions