af Jonas Astrup, HTML.dk
Sidst opdateret d. 26. april 2001
Dette script finder brugerens skærmopløsning og størrelsen på browservinduet.
<html> <head> <title>Skærmopløsning og størrelse på browservinduet</title> </head> <body> <script type="text/javascript"> <!-- Dette script og mange flere --> <!-- findes hos http://www.html.dk --> <!-- Start if (document.all) { browserwidth = document.body.clientWidth; browserheight = document.body.clientHeight; } else { browserwidth = window.innerWidth; browserheight = window.innerHeight; } screenheight = screen.height screenwidth = screen.width document.write ('<p>Skærmopløsning: ' + screenwidth + ' * ' + screenheight + ' pixels</p>') document.write ('<p>Browservindue: ' + browserwidth + ' * ' + browserheight + ' pixels</p>') // Slut --> </script> </body> </html>