how can i calculate body width and height for all browser in java query...
$(document).ready(function () {
$(document).ready(sizeContent01);
function sizeContent01() {
var totHeight = ($("body").height());
var hdrHeight = $("#header").outerHeight(true);
var ftrHeight = $("#footer").outerHeight(true);
var bdyHeight1 = totHeight - hdrHeight - 10;
var outputHeight = bdyHeight1 - $(".input_content").outerHeight(true) - 10;
$("#body").css("height", bdyHeight1);
$(".output_content").css("height", (outputHeight - 5));
};
$(window).resize(sizeContent02);
function sizeContent02() {
var totHeight = ($("body").height());
var hdrHeight = $("#header").outerHeight(true);
var ftrHeight = $("#footer").outerHeight(true);
var bdyHeight1 = totHeight - hdrHeight - 10;
var outputHeight = bdyHeight1 - $(".input_content").outerHeight(true) - 10;
$("#body").css('height', bdyHeight1);
$(".output_content").css('height', (outputHeight - 5));
};
});
please any one help me....