Browsers View port Width & Height using Javascript
DescriptionB...
Description
Browsers Width & Height using jQueryCode
<html>
<head>
<title>Browsers Width & Height using jQuery</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function () {
var height = $(window).height();
var width = $(window).width();
alert("Height : " + height + " Width : " + width)
});
</script>
</head>
<body>
</body>
</html>
Browser Compatibility
I have tested this script in the following Web browsers:- Internet Explorer
- Mozilla Firefox
- Google Chrome
- Safari
- Opera