Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Dimensions > Finding the Dimensions of the Window and Document

6.2. Finding the Dimensions of the Window and Document

6.2.1. Problem

You want to get the width and height of the window and document in pixels.

6.2.2. Solution

jQuery’s width and height methods provide easy access to the basic dimensions of the window or document:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint