By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,631 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

Window width

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DU
Grant Ito wrote:
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
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.