The window of the view and the global object in the scripting environment. More...
Public Member Functions | |
void | scrollBy ([Default=Undefined] optional long x, [Default=Undefined] optional long y) |
Scrolls the document in the window by the given amount. More... | |
void | scrollTo ([Default=Undefined] optional long x, [Default=Undefined] optional long y) |
Scrolls to a particular set of coordinates in the document. More... | |
unsigned long | setTimeout (AnyCallback handler, [Default=Undefined] optional unsigned long timeout) |
schedule a callback to be executed after timeout milliseconds More... | |
void | clearTimeout (unsigned long handle) |
clear a previous scheduled timer More... | |
unsigned long | setInterval (AnyCallback handler, unsigned long interval) |
schedule a callback to be executed at timeout milliseconds intervals More... | |
void | clearInterval (unsigned long handle) |
clear a previous scheduled repeating timer More... | |
CSSStyleDeclaration | getComputedStyle (Element element) |
the last computed style of the element More... | |
long | requestAnimationFrame (AnyCallback callback) |
void | cancelAnimationFrame (long id) |
Cancels an animation frame request previously scheduled through a call to requestAnimationFrame() More... | |
void | addEventListener (DOMInternedString type, EventListener listener, [Default=Undefined] optional boolean useCapture) |
void | removeEventListener (DOMInternedString type, EventListener listener, [Default=Undefined] optional boolean useCapture) |
boolean | dispatchEvent (Event event) |
Selection | getSelection () |
Returns a Selection object representing the range of text selected by the user, or the current position of the caret. More... | |
Public Attributes | |
readonly attribute Document | document |
The document in the current window. More... | |
readonly attribute Console | console |
The console API that can be used for logging. More... | |
readonly attribute Performance | performance |
readonly attribute Location | location |
readonly attribute Navigator | navigator |
readonly attribute Window | self |
readonly attribute Storage | localStorage |
readonly attribute History | history |
readonly attribute Window | parent |
A reference to the parent of the current window or subframe. More... | |
readonly attribute Screen | screen |
readonly attribute CustomElementRegistry | customElements |
Gets the CustomElementRegistry that can be used to register new custom or get information about registered custom elements. More... | |
readonly attribute long | outerHeight |
Gets the height in pixels of the whole browser window. It represents the height of the whole browser window including sidebar (if expanded), window chrome and window resizing borders/handles. More... | |
readonly attribute long | outerWidth |
Gets the width of the outside of the browser window. It represents the width of the whole browser window including sidebar (if expanded), window chrome and window resizing borders/handles. More... | |
readonly attribute long | innerHeight |
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar. More... | |
readonly attribute long | innerWidth |
Width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar. More... | |
readonly attribute long | screenX |
Returns the horizontal distance, in CSS pixels, of the left border of the user's browser from the left side of the screen. More... | |
readonly attribute long | screenY |
Returns the vertical distance, in CSS pixels of the top border of the user's browser from the top edge of the screen. More... | |
readonly attribute long | screenLeft |
This is an alias for screenX. More... | |
readonly attribute long | screenTop |
This is an alias for screenY. More... | |
readonly attribute long | scrollX |
Returns the number of pixels that the document has already been scrolled horizontally. More... | |
readonly attribute long | scrollY |
Returns the number of pixels that the document has already been scrolled vertically. More... | |
readonly attribute long | pageXOffset |
This is an alias for scrollX. More... | |
readonly attribute long | pageYOffset |
This is an alias for scrollY. More... | |
readonly attribute double | devicePixelRatio |
Returns the ratio of the CSS pixel size to device pixel size. More... | |
readonly attribute Chrome | chrome |
attribute EventSetter | gamepadconnected |
attribute EventSetter | gamepaddisconnected |
attribute EventSetter | popstate |
attribute EventSetter | resize |
attribute EventSetter | unhandledrejection |
attribute EventSetter | vrdisplayactivate |
attribute EventSetter | vrdisplayblur |
attribute EventSetter | vrdisplayconnect |
attribute EventSetter | vrdisplaydeactivate |
attribute EventSetter | vrdisplaydisconnect |
attribute EventSetter | vrdisplayfocus |
attribute EventSetter | vrdisplaypresentchange |
attribute EventSetter | abort |
attribute EventSetter | blur |
attribute EventSetter | click |
attribute EventSetter | dblclick |
attribute EventSetter | error |
attribute EventSetter | focus |
attribute EventSetter | keydown |
attribute EventSetter | keypress |
attribute EventSetter | keyup |
attribute EventSetter | load |
attribute EventSetter | mousedown |
attribute EventSetter | mouseover |
attribute EventSetter | mouseout |
attribute EventSetter | mouseenter |
attribute EventSetter | mouseleave |
attribute EventSetter | mousemove |
attribute EventSetter | mouseup |
attribute EventSetter | input |
attribute EventSetter | scroll |
attribute EventSetter | wheel |
attribute EventSetter | touchstart |
attribute EventSetter | touchend |
attribute EventSetter | touchmove |
The window of the view and the global object in the scripting environment.
void Window::addEventListener | ( | DOMInternedString | type, |
EventListener | listener, | ||
[Default=Undefined] optional boolean | useCapture | ||
) |
Implements EventTarget.
void Window::cancelAnimationFrame | ( | long | id | ) |
Cancels an animation frame request previously scheduled through a call to requestAnimationFrame()
id | The ID of the request to cancel. |
void Window::clearInterval | ( | unsigned long | handle | ) |
clear a previous scheduled repeating timer
handle | a handle returned from setInterval |
void Window::clearTimeout | ( | unsigned long | handle | ) |
clear a previous scheduled timer
handle | a handle returned from setTimeout |
boolean Window::dispatchEvent | ( | Event | event | ) |
Implements EventTarget.
CSSStyleDeclaration Window::getComputedStyle | ( | Element | element | ) |
the last computed style of the element
element | the element whose style to get |
Selection Window::getSelection | ( | ) |
Returns a Selection object representing the range of text selected by the user, or the current position of the caret.
void Window::removeEventListener | ( | DOMInternedString | type, |
EventListener | listener, | ||
[Default=Undefined] optional boolean | useCapture | ||
) |
Implements EventTarget.
long Window::requestAnimationFrame | ( | AnyCallback | callback | ) |
void Window::scrollBy | ( | [Default=Undefined] optional long | x, |
[Default=Undefined] optional long | y | ||
) |
Scrolls the document in the window by the given amount.
x | offset in pixels to scroll horizontally. |
y | offset in pixels to scroll vertically. |
void Window::scrollTo | ( | [Default=Undefined] optional long | x, |
[Default=Undefined] optional long | y | ||
) |
Scrolls to a particular set of coordinates in the document.
x | is the pixel along the horizontal axis of the document that you want displayed in the upper left. |
y | is the pixel along the vertical axis of the document that you want displayed in the upper left. |
unsigned long Window::setInterval | ( | AnyCallback | handler, |
unsigned long | interval | ||
) |
schedule a callback to be executed at timeout milliseconds intervals
The first call to the callback will be after timeout milliseconds
handler | a callback without arguments |
interval | the delay in milliseconds. |
unsigned long Window::setTimeout | ( | AnyCallback | handler, |
[Default=Undefined] optional unsigned long | timeout | ||
) |
schedule a callback to be executed after timeout milliseconds
handler | a callback without arguments |
timeout | the delay in milliseconds. |
attribute EventSetter Window::abort |
attribute EventSetter Window::blur |
readonly attribute Chrome Window::chrome |
attribute EventSetter Window::click |
readonly attribute Console Window::console |
The console API that can be used for logging.
readonly attribute CustomElementRegistry Window::customElements |
Gets the CustomElementRegistry
that can be used to register new custom or get information about registered custom elements.
attribute EventSetter Window::dblclick |
readonly attribute double Window::devicePixelRatio |
Returns the ratio of the CSS pixel size to device pixel size.
readonly attribute Document Window::document |
The document in the current window.
attribute EventSetter Window::error |
attribute EventSetter Window::focus |
attribute EventSetter Window::gamepadconnected |
attribute EventSetter Window::gamepaddisconnected |
readonly attribute History Window::history |
readonly attribute long Window::innerHeight |
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
readonly attribute long Window::innerWidth |
Width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar.
attribute EventSetter Window::input |
attribute EventSetter Window::keydown |
attribute EventSetter Window::keypress |
attribute EventSetter Window::keyup |
attribute EventSetter Window::load |
readonly attribute Storage Window::localStorage |
readonly attribute Location Window::location |
attribute EventSetter Window::mousedown |
attribute EventSetter Window::mouseenter |
attribute EventSetter Window::mouseleave |
attribute EventSetter Window::mousemove |
attribute EventSetter Window::mouseout |
attribute EventSetter Window::mouseover |
attribute EventSetter Window::mouseup |
readonly attribute Navigator Window::navigator |
readonly attribute long Window::outerHeight |
Gets the height in pixels of the whole browser window. It represents the height of the whole browser window including sidebar (if expanded), window chrome and window resizing borders/handles.
readonly attribute long Window::outerWidth |
Gets the width of the outside of the browser window. It represents the width of the whole browser window including sidebar (if expanded), window chrome and window resizing borders/handles.
readonly attribute long Window::pageXOffset |
This is an alias for scrollX.
readonly attribute long Window::pageYOffset |
This is an alias for scrollY.
readonly attribute Window Window::parent |
A reference to the parent of the current window or subframe.
readonly attribute Performance Window::performance |
attribute EventSetter Window::popstate |
attribute EventSetter Window::resize |
readonly attribute Screen Window::screen |
readonly attribute long Window::screenLeft |
This is an alias for screenX.
readonly attribute long Window::screenTop |
This is an alias for screenY.
readonly attribute long Window::screenX |
Returns the horizontal distance, in CSS pixels, of the left border of the user's browser from the left side of the screen.
readonly attribute long Window::screenY |
Returns the vertical distance, in CSS pixels of the top border of the user's browser from the top edge of the screen.
attribute EventSetter Window::scroll |
readonly attribute long Window::scrollX |
Returns the number of pixels that the document has already been scrolled horizontally.
readonly attribute long Window::scrollY |
Returns the number of pixels that the document has already been scrolled vertically.
readonly attribute Window Window::self |
attribute EventSetter Window::touchend |
attribute EventSetter Window::touchmove |
attribute EventSetter Window::touchstart |
attribute EventSetter Window::unhandledrejection |
attribute EventSetter Window::vrdisplayactivate |
attribute EventSetter Window::vrdisplayblur |
attribute EventSetter Window::vrdisplayconnect |
attribute EventSetter Window::vrdisplaydeactivate |
attribute EventSetter Window::vrdisplaydisconnect |
attribute EventSetter Window::vrdisplayfocus |
attribute EventSetter Window::vrdisplaypresentchange |
attribute EventSetter Window::wheel |