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

(1 comment)

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