how to get the height and width of the the screen by JQuery

We can get the height and width of the screen with the JQuery.

Below is the code to find the height and width of the screen.

 

alert($(document).width());
alert($(document).height());

Share and Enjoy

  • Facebook
  • Twitter
  • Google Plus
  • Live
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Instapaper
  • FriendFeed