- Code: Select all
<script type="text/javascript">
<!--
if (navigator.appName == "Netscape")
windowwidth = window.innerWidth;
else if (navigator.appName == "Microsoft Internet Explorer")
windowwidth = document.body.clientWidth;
-->
</script>
Browser Window Width
1 post • Page 1 of 1
Browser Window WidthThis 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.
1 post • Page 1 of 1
Return to Java Script / VB Script Who is onlineUsers browsing this forum: No registered users and 0 guests |
|