Monday, June 16, 2008
Screen Object in JavaScript
To detect details about the client's screen
Screen resolution:
document.write(screen.width + "*" + screen.height);
Available view area:
document.write(screen.availWidth + "*" + screen.availHeight);
Color depth:
document.write(screen.colorDepth);
Buffer depth:
document.write(screen.bufferDepth);
DeviceXDPI:
document.write(screen.deviceXDPI);
DeviceYDPI:
document.write(screen.deviceYDPI);
LogicalXDPI:
document.write(screen.logicalXDPI);
LogicalYDPI:
document.write(screen.logicalYDPI);
FontSmoothingEnabled:
document.write(screen.fontSmoothingEnabled);
PixelDepth:
document.write(screen.pixelDepth);
UpdateInterval:
document.write(screen.updateInterval);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment