codice:
var W = screen.width;
var H = screen.height;

document.writeln("Altezza pari a "+H+" px");
document.writeln("Larghezza pari a "+W+" px");