Check Screen Height and Width

[Total: 0    Average: 0/5]

This checks the users width and height of their montior.

Body Code:

<Script Language="JavaScript">

width = screen.width;

height = screen.height;

if (width == 800 && height == 600){
document.write("YOUR SCREEN " + width + " ");
document.write(" X " + height + " pixels <br> ( Best for viewing ! ) ");
}

// Here change You may change resolution 640*480

if (width != 800 && height != 600){
document.write("<BR><BR><FONT COLOR=FF0000>WARNING--<BR>Resolution of Your screen dose not suit to this page</FONT>");
document.write("<br>YOUR SCREEN " + width + " ");
document.write(" X " + height + " pixels ");
}


</SCRIPT>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *