Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Screen | Q1166 [ previous next ]

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>

©2018 Martin Webb