Visual Basic (3539)
Obtain screen and current window size in VBScript
8 comments. Current rating: (6 votes). Leave comments and/ or rate it.
Question:I want to adjust my web page's controls to the browser window size. How can I find the size of the browser's window?
Answer:VBScript has the screen variable with properties height and width. Use document.body.clientWidth and document.body.clientHeight for the viewable size.