Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1166 How can I determine the user's inner window height and width?

irt.org | Knowledge Base | JavaScript | Screen | Q1166 [ previous next ]

Q1166 How can I determine the user's inner window height and width?

By using:

<script language="JavaScript"><!--
var height, width;

if (document.all)
    height = document.body.offsetHeight, width = document.body.offsetWidth;
else if (document.layers)
    height = window.innerHeight, width = window.innerWidth;
//--></script>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.