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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Screen Size

Status
Not open for further replies.

NeckBone

Programmer
Joined
Oct 15, 2003
Messages
47
Location
US
Howdy naighbors,
I have a question:

Is it possible to detect the users Screen Size in pixels usin client side javascript?

Thanks,
neckbone
 

Both "screen.width" and "screen.availWidth" work for me in several browsers (and obviously the height equivalents for the height).

Hope this helps,
Dan
 
Thanks BillyRay,

hey BillyRay, Do you know where I can get all the methods, properties, event handlers, etc. for javascript.

This is my trouble with javascript. I don't know what's available for me to use.
 
I use the JavaScript - The Definitive Guide by O'Reilly. ISBN: 0596000480 (4th Edition). I can't remember whether it is up to a 5th Edition of not. It is one of the most comprehensive references, and should give you what you need.

I think there was a thread running about on "Recommended JavaScript References" somewhere... thread216-740676 might help.

I often use Google and search for "javascript ...", where "..." is a description of what I am trying to do.

Hope this helps.

Pete.


Web Developer & Aptrix / IBM Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
howdy again,

Just got back from a short vacation in tornado alley. Still in one piece.

MSDN, huh! I didn't realize JavaScript was included. I'll check it out.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top