namespace document

View source on GitHub →


Prototype extends the built-in document object with several convenience methods related to events.


  • document.viewport

    The document.viewport namespace contains methods that return information about the viewport — the rectangle that represents the portion of a web page within view. In other words, it's the browser window minus all chrome.

Class methods

Class properties

Instance methods