ecnarongi
02-24-2003, 11:05 PM
I solved this before like 2 years ago on this forum, but I cannot find it in the archive.
here is my problem, I need a popup window to honor the window attributes onsubmit but they aren't
<form method="post" name="form1" action="http://www.iwon.com" target="myWin" onsubmit="window.open('','myWin','toolbar=no,status=no,location=no,menubar=no,scrollbars=yes,resizable=no,widt h=250,height=250');return true;">
....
</form>
<script language="javascript">
function forme()
{ document.form1.submit() }
</script>
<a href="#" onclick="forme()">Link</a>
I know that the attributes default to no, this is just overkill. I thought that we figured there is just a problem doing this with the submit() function, but if I use an input button I should be fine. I cannot use an input button, all help is appreciated. Thanks
here is my problem, I need a popup window to honor the window attributes onsubmit but they aren't
<form method="post" name="form1" action="http://www.iwon.com" target="myWin" onsubmit="window.open('','myWin','toolbar=no,status=no,location=no,menubar=no,scrollbars=yes,resizable=no,widt h=250,height=250');return true;">
....
</form>
<script language="javascript">
function forme()
{ document.form1.submit() }
</script>
<a href="#" onclick="forme()">Link</a>
I know that the attributes default to no, this is just overkill. I thought that we figured there is just a problem doing this with the submit() function, but if I use an input button I should be fine. I cannot use an input button, all help is appreciated. Thanks