Determine Window Size | JavaScriptSource

Determine Window Size

JavaScriptSource Staff Feb 8, 2008

General

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.


Notes

Source Code

Paste this source code into the designated areas.

Head

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