Possible Duplicate:
how to get the browser window size without the scroll bars
How to put a border around the browser content viewing area using using jquery?
Here is what I tried..
var $windowW = $(window).width();
var $windowH = $(window).height();
alert($windowW + " " + $windowH); // THe results are width 1440 and 745 height
$("body").css("width", $windowW);
$("body").css("height", $windowH);
$("body").css("border","1px solid green");
I have no elements in the body of the document and I am not getting a green border around the width of 1440 and height of 745.
How do I put a border around the viewable area of the browser using the return values from $windowW and $windowH using jquery?