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