Determine the width of the browser window
This javascript gives you the width of your browser window, useful if your design depends on the size of the screen. Note that Netscape & Internet Explorer both use different variable names.
<script language=javascript>
if(navigator.appName == “Netscape”)
{
windowwidth = window.innerWidth;
}
else if(navigator.appName == “Microsoft Internet Explorer”)
{
windowwidth = document.body.clientWidth;
}
</script>
