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

Screen Resolution

Status
Not open for further replies.

dhedden

Programmer
Jul 16, 2005
8
US
I need a javascript that pops up on a web site if the screen resolution is less than or greater than 800X600. It also needs to say,"This page is best viewed at a screen resolution of 800X600."

any help would be great.
 
You can test "screen.width" and "screen.height" to find the dimesnsions... but to be honest (and bear in mind this is said without knowing your circumstances, as you've not told us any) you might be better off re-designing your layout to be scalable / fluid.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top