Get window size, width, height in Javascript
Size of a window
window's outer width and height, inner height and width.
<!DOCTYPE HTML>
<html>
<body>
<script type="text/javascript">
document.writeln(window.outerWidth);
document.writeln(window.outerHeight);
document.writeln(window.innerWidth);
document.writeln(window.innerHeight);
document.writeln(window.screen.width);
document.writeln(window.screen.height);
</script>
</body>
</html><!--from w w w. j ava 2s. c o m-->