How to get height and width of page?

Mayank
Mayank
Member
194 Points
12 Posts

How to get height and width of page?

Views: 8597
Total Answered: 1
Total Marked As Answer: 0
Posted On: 11-Feb-2015 09:02

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Editor
1382 Points
14 Posts
         

Hi, Mayank

You can use JQuery as:

var BrowserViewportWidth = 0;
var BrowserViewportHeight = 0;
var BrowserDocumentWidth = 0;
var BrowserDocumentHeight = 0;
 
BrowserViewportWidth = $(window).width();
BrowserViewportHeight = $(window).height();
BrowserDocumentWidth = $(document).width();
BrowserDocumentHeight = $(document).height();
Posted On: 11-Feb-2015 08:10
 Log In to Chat