In At The Bleep End
Tuesday, July 25, 2006
Javascript window properties Javascript window properties: If you need to test the inner width or height of a browser window so that you can set the dimensions of a page element on the fly you can use javascript like this... var x,y;But, note: 1. You will need to activate the correct layout mode to make this work in some browsers (eg. IE6) 2. You may want to build in an automatic page refresh to activate if the window is manually resized |