Welcome visitor
* Login
* Register
It is currently May 26th, 2019, 3:03 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  User screen resolution with Javascript
PostPosted: February 11th, 2009, 1:15 am 
User avatar

Posts: 52
Hi,
Im desining a website for the which i need to know the user's screen resolution, can you tell me how can i get, if possible, this information?

Cheers


Top
 Profile  
 
  Re: User screen resolution with Javascript
PostPosted: February 11th, 2009, 1:20 am 
User avatar

Posts: 40
dunna what you need the resolution for, cos even when you know the resolution of the screen you will not know the size of the browser window.... anyway, this is what you asked for:
'screen.width '
'screen.height'
and this is an example of using them:
<SCRIPT language="JavaScript">
if ((screen.width>=800) && (screen.height>=600))
{}
</SCRIPT>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron