Home / Free JavaScripts / User System / Here

Cut & Paste Displays screen size of the surfer!
Credit: Not indicated in script

Description: The below script will display the screen size of each individual surfer...all you need is a java enabled browser.

Example:

Directions: Simply cut and paste this script into the <body> tags of your page.

<SCRIPT>
if (navigator.javaEnabled()) {
var toolkit = java.awt.Toolkit.getDefaultToolkit();
var screen_size = toolkit.getScreenSize();
width = screen_size.width;
height = screen_size.height;
}
document.write('Your screen size is '+width+'X'+height)
</SCRIPT>

[an error occurred while processing this directive]

Copyright © 1997-2014 JavaScript Kit. NO PART may be reproduced without author's permission.