IWindow class
IWindow class
The window object represents a window containing a DOM document.
The IWindow type exposes the following members:
Properties
Property | Description |
---|---|
window | Returns the Window object’s browsing context’s WindowProxy object. |
self | Returns the Window object’s browsing context’s WindowProxy object. |
document | The document attribute must return the Window object’s newest Document object. |
name | The name attribute of the Window object must, on getting, return the current name of the browsing context, and, on setting, set the name of the browsing context to the new value. |
location | The location attribute of the Window interface must return the Location object for that Window object’s Document. |
top | The top IDL attribute on the Window object of a Document in a browsing context b must return the WindowProxy object of its top-level browsing context (which would be its own WindowProxy object if it was a top-level browsing context itself), if it has one, or its own WindowProxy object otherwise (e.g. if it was a detached nested browsing context). |
opener | The opener IDL attribute on the Window object, on getting, must return the WindowProxy object of the browsing context from which the current browsing context was created (its opener browsing context), if there is one, if it is still available, and if the current browsing context has not disowned its opener; otherwise, it must return null. On setting, if the new value is null then the current browsing context must disown its opener; if the new value is anything else then the user agent must call the [[DefineOwnProperty]] internal method of the Window object, passing the property name “opener” as the property key, and the Property Descriptor { [[Value]]: value, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true } as the property descriptor, where value is the new value. |
parent | The parent IDL attribute on the Window object of a Document in a browsing context b must return the WindowProxy object of the parent browsing context, if there is one (i.e. if b is a child browsing context), or the WindowProxy object of the browsing context b itself, otherwise (i.e. if it is a top-level browsing context or a detached nested browsing context). |
frame_element | The frameElement object of a Document. |
local_storage | Returns a Storage object that allows you to save key/value pairs in the user agent. |
default_view |
Methods
Method | Description |
---|---|
add_event_listener | This method allows the registration of event listeners on the event target. |
add_event_listener | This method allows the registration of event listeners on the event target. |
remove_event_listener | This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions.Event Listeners can never be invoked after being removed. |
remove_event_listener | This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions.Event Listeners can never be invoked after being removed. |
alert | Displays a modal alert with the given message, and waits for the user to dismiss it |
confirm | Displays a modal OK/Cancel prompt with the given message, waits for the user to dismiss it, and returns true if the user clicks OK and false if the user clicks Cancel. |
prompt | Displays a modal text field prompt with the given message, waits for the user to dismiss it, and returns the value that the user entered. If the user cancels the prompt, then returns null instead. If the second argument is present, then the given value is used as a default. |
btoa | Takes the input data, in the form of a Unicode string containing only characters in the range U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF respectively, and converts it to its base64 representation, which it returns. |
atob | Takes the input data, in the form of a Unicode string containing base64-encoded binary data, decodes it, and returns a string consisting of characters in the range U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF respectively, corresponding to that binary data. |
match_media | Returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query. See CSSOM View Module specification: |
dispatch_event | This method allows the dispatch of events into the implementations event model. |
set_timeout | |
clear_timeout | |
set_interval | |
clear_interval |
See Also
- module
aspose.svg.window
- class
EventTarget
- class
IEventListener
- class
IEventTarget