Jump to content

Archived

This topic is now archived and is closed to further replies.

moonwalkercs

Browser Size

Recommended Posts

how can I get the size of the user's browser and then use this size to control the width of some of my div tags?

thanks

Share this post


Link to post
Share on other sites
Is it browser size you're looking for or screen resolution?

For screen resolution it's:

[code]
height = screen.height
width = screen.width
[/code]

For the browser it's:
[code]
height = document.body.clientHeight
width = document.body.clientWidth
[/code]

HTH.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.