Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

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