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!

CHECK RESOLUTION 1

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
HI,
Is there a way to check which resolution a user is at and set the page accordingly?

Thanks..Russ
 
screen.width or height will give you that stuff.
 
Hi,

Can you be more specific with an example of code.
Thanks..Russ
 
you could use it something like...

if(screen.width < abc && screen.height < xyz)
{
do something
} else {
do something else
}
 
that did the trick
thanks..Russ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top