Home / code

Screen size

Writer: Christophe Wolfs
Published: 27 March 2008

These are a few lines the print the size of the screen. (800x600,1024x768, ...)
This can be handy for a wallpaper site or any site that needs to know the screensize. You can use part of the code for other scripts to.

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
  document.write("Your resolution is "+ screen.width +"x"+ screen.height +".<br>");
// End -->
</SCRIPT>

 

TOP