[Javascript] Open Maximized Window

Alan Easton alan.easton at unn.ac.uk
Wed Oct 29 07:24:26 CST 2003


As far as I know, there is no api that will open a window in maximised
mode.....I could be wrong, so if someone else knows.....??

As far as I know, all you can do is (with NN4 and IE4/5) open the window at 
position 0,0 with dimensions equal to the screen dimensions....

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


Hi Alan,

I need a window maximized, not resized. I don't want the "maximize" icon in
the top right hand corner but the "resize" icon.

would appreciate ur assistance


Nazir

> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Alan Easton
> Sent: Wednesday, October 29, 2003 5:59 PM
> To: '[JavaScript List]'
> Subject: RE: [Javascript] Open Maximized Window
>
>
> 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,s
tatus=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
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>

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



More information about the Javascript mailing list