dojo/window¶
since: | v1.5 |
---|
Contents
dojo/window contains functions related to the viewport.
Usage¶
Requiring the module will return an object with the appropriate features:
require(["dojo/window"], function(win){
// win contains features
});
Features¶
-
Returns the size of the viewport as a {w: 123, h: 456} Object
-
Returns the window corresponding to a document
-
Scrolls a node into view, similar to node.scrollIntoView() but working around browser quirks.
See Also¶
- dojo/_base/window - The core browser window related functions.