Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting users screens size so that your page can be more dynamic

Status
Not open for further replies.

andyUK

Programmer
Dec 19, 2000
39
GB
How do you get users screens size so that your page can be more dynamic?
 
Using client side script you can access that information if the browser supports the DHTML for it.

In IE 5+ you can use window.srceen.availWidth and window.screen.availHeight

Hope this helps
-pete
 
That helped thanks. I have decided to write a splash screen that is a form and a hidden value. WHen the user clicks on the imagefield to enter the site the hidden value field is filled in with the screen width.

Thanks again for your help.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top