(I sent this message this morning, but have not seen it, so it may have
gotten lost in the shuffle.)
I've got a problem with a popup window that is driving me buggy. Hopefully,
another set of eyes will see something blatant.
The following code works just fine:
<html>
<head>
<title>test</title>
<script language="JavaScript">
function ShowLast(MID) {
var loc = "ReadPopup.htm?" + MID;
window.open (loc,"","scrollbars=yes,resizable=yes");
return false;
}
</script>
</head>
<body>
<a href="" onClick="return ShowLast(240);">Test</a>
</body>
</html>
This is pretty simple and straightforward, and if it were what I wanted, I
would be done. However, I don't want the window to be quite as large, so I
change the open statement to read:
window.open (loc,"","height=200,width=200,scrollbars=yes,resizable=yes");
Now, the open statement bombs out, the function is left, and since false is
never returned, the browser tries to open the blank href.
Why is this not working? Simply adding either the height or the width
causes the function to no longer work, but for the life of me, I can't
figure out why this is the case.
Thanks -
George L Smyth
George L Smyth, Webmaster
U.S. Naval Academy Alumni Association