Hi,
I'm trying to, after submitting a form, open a popup window and print all info in the
popup window.
I use the following code - which of course doesn't work:
<html>
<head>
<title>Untitled</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popupPage(l, t, w, h) {
var windowprops =
"location=no,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,left=" + l +
",top=" + t + ",width=" + w + ",height=" + h;
var URL = "popup2.php";
popup = window.open(URL,"MenuPopup",windowprops);
}
// End -->
</script>
</HEAD>
<body>
<center>
<table>
<tr>
<td>
<br><br>
<form method=post action=/ onSubmit="popupPage(20, 20, 450, 350)">
<center>
<input type="text" name="varname1"><br>
<input type="text" name="varname2"><br>
<input type=submit value="Submit">
</center>
</form>
</td>
</tr>
</table>
</center>
</body>
</html>
I'm getting a new popup window but nothing's there.
Thanks for any help
Afan