I have a form that submit to the same page when double click on a product:
<form method="post" action="quotes.asp" name="form1"
onDblClick="javascript:formHandler()">
How can I submit the form in a popup window and another page using a html
link?
Following code doesn't work because of the nested apostrophes in the
javascript.
<a href="#"
onclick="window.open('javascript:document.form1.ac tion='savequote.asp';
document.form1.submit();','popup','width=150, height=100,top=' + topPos +
',left=' + leftPos);">Save Quote</a>
<script language="JavaScript">
var w = 400, h = 200;
if (document.all || document.layers) {
w = screen.availWidth;
h = screen.availHeight;
}
var popW = 200, popH = 150;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
</script>