View Full Version : How do you open a window to its full size?

12-18-2003, 04:19 PM
I am writing a program to open a window. Listed below is the coding I'm using to open a window at a smaller size. I had thought that simply taking out the coding (height=560, width=440) would make it default to opening to the full size, but it doesn't. What coding do I use to ensure that the window always opens to the full size of the screen.



var w = window.open(url, target, "height=560, width=440, toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no");

12-18-2003, 04:29 PM
var w = screen.width, h = screen.height;
var x = window.open(url, target, 'top=0,left=0,width=' + w + ',height=' + h);

Hope that helps!

Happy coding! :)

12-18-2003, 07:31 PM
Thanks for your help