Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: Screen resolution in IE 4 - July 16, 1998 at 18:10:53

You are here: irt.org | BBS | Re: Screen resolution in IE 4 [This BBS is closed]

Posted by Dan Ambrose on July 16, 1998 at 18:10:53:

In Reply to: Screen resolution in IE 4 posted by Ed Waddingham on July 16, 1998 at 10:33:31:

: How do you find out someone's screen resolution in IE 4? In NN you can use the code:

: <script>
: toolkit = java.awt.Toolkit.getDefaultToolkit ();
: screensize = toolkit.getScreenSize ();
: document.writeln
: ("

: " + "Your screen is " + screensize . width + " pixels wide." + "</p>");
: document . writeln
: ("

: " + "Your screen is " + screensize . height + " pixels tall." +"</p>");
: </script>

: But in IE 4 this does not work, as it does not recognize "java". Does anyone know an alternative?

Actually, you wanna use the screen object.
This object is supported only on 4.0 browsers so dont
expect too much.

Determind the screen size:

screen.height
screen.width
screen.availHeight
screen.availWidth

Determine the user's monitor color depth:
screen.colorDepth

Note: it will give you the property in bits (ie, 8bit,16,etc...)
hope this helps....
Follow-ups:

You are here: irt.org | BBS | Re: Screen resolution in IE 4 [This BBS is closed]

©2018 Martin Webb