Click to See Complete Forum and Search --> : window.open properties (maximize window)


mh53j_fe
03-20-2003, 12:17 PM
I want to open a new window that is maximized. How do I set up the properties in window.open. Here is the code that I am how using. Thanks for your help.


function makeNewWindow()
{
var n_win;
var windowProps;
n_win =randomName(); //Generate unique window name

windowFeatures = "top=0, left=0, resizable=yes"
+",width=" + (screen.width)
+",height=" + (screen.height);
newWindow = window.open ("../html_app/apframe.html",n_win,windowFeature
s)
newWindow.focus();
} // end of function makeNewWindow()

Jona
03-20-2003, 12:23 PM
<html><head>
<script>
function makeNewWindow()
{

windowFeatures = "top=0,left=0,resizable=yes,width="+(screen.width)+",height="+(screen.height);
newWindow=window.open("","",windowFeatures)
newWindow.focus();
}
</script><body>
<a href="javascript:makeNewWindow()">Open</a>
</body></html>

The above works fine for me. (I use IE6.)