How JavaScript Works by Jonathon Simpson

How JavaScript Works by Jonathon Simpson

Author:Jonathon Simpson
Language: eng
Format: epub, pdf
ISBN: 9781484297384
Publisher: Apress


The Window Object

Let’s look at how the window object works. The window object (Figure 8-1) has a lot of interesting information about the window that is currently open. For example, you can find the following information on it:window.innerWidth and window.innerHeight, representing the width and height of the window.

window.scrollX and window.scrollY, representing the x and y axis scroll positions.

window.screenX and window.screenY, representing the x and y coordinates in pixels of the user’s cursor.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.