Determine Window Size | JavaScriptSource

Determine Window Size

JavaScriptSource Staff Feb 8, 2008


Use this snippet to determine the size of an open window. Can be used in many different situations, e.g., for setting the size of a div.


Source Code

Paste this source code into the designated areas.


Paste this code into the HEAD section of your HTML document.

Leave a Response


Thanks for the time saver... Jordon: be sure you include something like: [removed] [removed] Mar 13, 2016

I do not understand where I should place the dimensions into your code to determine window size.[br /][br /]Please advise.[br /][br /]Thank you

Jordon Feb 17, 2008