Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web Development
Expertise: Beginner
Apr 30, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Browser size determination and tables

Is it possible to determine the size (width and height) of the current user's browser window? If so, is it then possible to use that pixel dimension and paste it into a table cell's width or height dimension?

(For example, Joe User goes to Big Client's Web page, with his browser sized so he can look at the changing baseball scoreboard he downloaded to his desktop earlier. The graphic on Big Client's home page has been designed to be placed on the bottom of the browser window. When Joe User gets to the page, JavaScript does a quick lookup of Joe's window dimensions, then places the graphic into a table with one bottom-aligned cell, which is the same size as the browser.)

Is this possible?

No. The size of a browser window is also dependent of the screen resolution of the user's monitor. There is no variable that can remotely detect the screen resolution of a user's browser.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date