Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

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>