Window width

G

Grant Ito

Hi,

What I thought to be a fairly straight-forward project is turning out to be
ridiculous. I'm simply trying to determine the width and height of a browser
window in IE v.6.0, but to no avail. I'm finding conflicting information
regarding which window property I should be using, and in all cases I am
receiving an "undefined" result. Code is as follows:

function displayWidth(){
window.alert("Width = " + window.outerWidth);
}

How can I determine the width and height of my browser window?

Thanks,
Grant.
 
D

DU

Grant said:
Hi,

What I thought to be a fairly straight-forward project is turning out to be
ridiculous. I'm simply trying to determine the width and height of a browser
window in IE v.6.0, but to no avail. I'm finding conflicting information
regarding which window property I should be using, and in all cases I am
receiving an "undefined" result. Code is as follows:

function displayWidth(){
window.alert("Width = " + window.outerWidth);
}

How can I determine the width and height of my browser window?

Thanks,
Grant.

Not possible in MSIE 4+. There is no equivalent to window.outerWidth in
MSIE 4+.

DU
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,076
Messages
2,570,565
Members
47,201
Latest member
IvyTeeter

Latest Threads

Top