Link to home
Start Free TrialLog in
Avatar of rasheed72
rasheed72

asked on

maximum window in ie and netscape

can you help me make a new window the maximum size possible for the user's system and then return the size of that window in pixels?

This is for a Geocities homepage
Avatar of TTom
TTom

rasheed72:

This script works in IE5 and NS4.6.  I can't vouch for it in other browsers.

function scr() {
      window.resizeTo(screen.availWidth, screen.availHeight)
      window.moveTo(0,0)
      alert(screen.availWidth + ", " + screen.availHeight)
}

<body onload="scr()">

Tom
Avatar of rasheed72

ASKER

TTom:

Thanks very much

I'm half way to my dream of an adjustable image-map.

Please submit this as an answer to get the points

I have another question. Maybe you can help with that also.

Rasheed
ASKER CERTIFIED SOLUTION
Avatar of TTom
TTom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial