var w = screen.width;
var h = screen.height;

document.write(w + ' x ' + h);