Visitor Screen resolution using Javascript

Print

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>