D
David McCulloch
The following code opens a new window, but the "resizeTo" doesn't resize it.
Why not?
(Don't ask why I simply did not open the window with the new size....my
original problem was how to open a new window with maximized dimensions!)
FYI, I uploaded the same code to:
http://tosasoft.com/test/open.htm
========================================
<html>
<head>
<SCRIPT LANGUAGE="JavaScript"><!--
function pgppopup() {
winobj1 = window.open('http://www.yahoo.com/', 'mywin1',
'top=0,left=0,height=120,width=120,' +
'toolbar=yes,menubar=yes,scrollbars=yes,' +
'resizable=yes,location=yes,status=yes');
winobj1.resizeTo(600,400);
}
//--></SCRIPT>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript"><!--
window.onload = pgppopup;
//--></SCRIPT>
<h1>Test to Open and Resize</h1>
</body>
</html>
========================================
Why not?
(Don't ask why I simply did not open the window with the new size....my
original problem was how to open a new window with maximized dimensions!)
FYI, I uploaded the same code to:
http://tosasoft.com/test/open.htm
========================================
<html>
<head>
<SCRIPT LANGUAGE="JavaScript"><!--
function pgppopup() {
winobj1 = window.open('http://www.yahoo.com/', 'mywin1',
'top=0,left=0,height=120,width=120,' +
'toolbar=yes,menubar=yes,scrollbars=yes,' +
'resizable=yes,location=yes,status=yes');
winobj1.resizeTo(600,400);
}
//--></SCRIPT>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript"><!--
window.onload = pgppopup;
//--></SCRIPT>
<h1>Test to Open and Resize</h1>
</body>
</html>
========================================