|
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>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.