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
rasheed72Asked:
Who is Participating?
 
TTomConnect With a Mentor Commented:
Rasheed:

Glad to help.  I look at questions here all the time, so I will probably catch your other question.  Unfortunately, I am not real big on image maps.  I am sure there are others around here who will be able to assist.

Tom
0
 
TTomCommented:
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
0
 
rasheed72Author Commented:
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
0
All Courses

From novice to tech pro — start learning today.