[Javascript] Open Maximized Window

Alan Easton alan.easton at unn.ac.uk
Wed Oct 29 06:29:13 CST 2003


You need to put this in the <head> section of the page that you want
maximised:

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.ava
ilWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

This should ensure the window is always maximised when it is opened.

-----Original Message-----
From: Nazir Wasim Ahmed [mailto:nazirwa at sakinfotech.co.in]
Sent: 29 October 2003 12:22
To: [JavaScript List]
Subject: [Javascript] Open Maximized Window


Howdy List,

I need to open a new window in the maximized mode.
can anyone pls guide me on this...
currently I am using

var popupURL
="report_builder.asp?report=blr_report_certificate.asp&search_no=";
window.open(popupURL,"Popup",'toolbar=1,location=1,directories=1,status=1,me
nubar=1,scrollbars=1,resizable=1,maximize=0');


Thanx in advance

Nazir

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list