Displaying the Properties of the Screen Object : Screen : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Screen »

 

Displaying the Properties of the Screen Object



<HTML>
<HEAD>
<TITLE>Test</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function displayScreenProperties() {
 with(document) {
  write("<B>height: </B>")
  writeln(screen.height+"<BR>")
  write("<B>width: </B>")
  writeln(screen.width+"<BR>")
  write("<B>colorDepth: </B>")
  writeln(screen.colorDepth+"<BR>")
 }
}
displayScreenProperties()
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Screen