You are here: irt.org | FAQ | JavaScript | Window | Q1575 [ previous next ]
It is document.body.clientWidth and document.body.clientHeight but the script accessing there properties of the body object must not be executed until after the body tag has rendered, i.e. use code triggered by the body tag's onLoad event handler.