CodeAve.com CodeAve.com - JavaScript - Misc
ASP
JavaScript
·Document Info
·Forms
·Images
·Miscellaneous
·Navigation
·Script Writers
·Contents
·What's New?
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


Screen Dimensions (Pixel Setting)
One of the many variables that will cause your web page (and just about every web page) in the world to appear inconsistently from client to client is the local screen resolution setting. While most people (or by default) have their screen resolution set to 800 x 600 or higher, there are still some who utilize larger settings. If your page is reliant on a 800 x 600 standard or greater you can display the settings and potentially redirect or advise the person that they may want to adjust their settings.
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<title>CodeAve.com (JavaScript: Screen Height & Width)</title>
<body bgcolor="#FFFFFF">

<script language="JavaScript">
<!-- 

document.write ("<b>Screen Width:</b> ")
document.write (screen.width)
document.write ("<br>")
document.write ("<b>Screen Height:</b> ")
document.write (screen.height)

// -->
</script>

</body>
</html>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Maps: Map Script Writers | Bing Maps | Google Maps
Privacy Statement

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2010 CodeAve.com
All Rights Reserved