| re: Javascript and Forms
Sylvain Perreault wrote on 15 feb 2004 in comp.lang.javascript:
[color=blue]
> onClick="javascript:window.open('','mailing','tool bar=0, location=0,
> directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0,
> menuBar=0, width=300, height=250')" value="Submit">
> </div>
> </form>[/color]
The javascript: should be left out, it is superfluous.
You are asking for an empty window with the onclick, why?
[color=blue]
> When I click on submit, everything is fine, a popup opens and the
> result of the form is printed in it.
> If I press ENTER, there's a new window opening but it's not the window
> in OnClick[/color]
Yes it is.
<input onclick="window.open('');return false">
would ONLY open an empty window.
<input onclick="window.open('');return true">
would FIRST open an empty window, and the form-submit window ALSO.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) |