Mukhbir

 
  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • green color
  • blue color

Visitor Screen resolution using Javascript

E-mail Print PDF

To detect the screen resolution (width and height in pixels) of the visitor using javascript, use the following script:

<script type="text/javascript">

document.write("Width = " + screen.availWidth + "px <br />");

document.write("Width = " + screen.availHeight + "px <br />");

</script>

Comments (0)Add Comment
Write comment
 
  smaller | bigger
 

busy