Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: to Maximize the window


Message #1 by "T.Gopalakrishnan" <tgk26@r...> on Thu, 24 Oct 2002 15:30:59
I use this to open a window that is maximised to screen's size. taking into
account resolution

objILoginWindow=window.open("ILogin.asp","","width=200,height=200,scrollbars
=yes,status=yes,resizable=yes")
var intScreenHeight = screen.availHeight;
var intScreenWidth = screen.availWidth;
objILoginWindow.moveTo(0, 0);
objILoginWindow.resizeTo(intScreenWidth, intScreenHeight);

The Maximise button becomes redundant, as  the opened page maximises and
occupies the whole screen.

This works fine in NS6 and IE5+  but check it out on NS4

-----Original Message-----
From: T.Gopalakrishnan [mailto:tgk26@r...]
Sent: 24 October 2002 15:31
To: javascript
Subject: [javascript] to Maximize the window


i am using screen.width and screen.height to maximize the window.but it
not giving an effect as we click the maximize button.so is there any way
to open a window with such effect and also the window should include the
title bar.

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



  Return to Index