@DOMObjectAttribute @DOMNoInterfaceObjectAttribute public interface IWindow extends IEventTarget, IWindowTimers, IDocumentView, com.aspose.html.internal.ms.System.IDisposable
The window object represents a window containing a DOM document.
Modifier and Type | Method and Description |
---|---|
void |
alert(String message)
Displays a modal alert with the given message, and waits for the user to dismiss it
|
boolean |
confirm(String message)
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.
|
Document |
getDocument()
The document attribute must return the Window object's newest Document object.
|
Element |
getFrameElement()
The frameElement object of a Document.
|
Location |
getLocation()
The location attribute of the Window interface must return the Location object for that Window object's Document.
|
String |
getName()
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.
|
IWindow |
getOpener()
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.
|
IWindow |
getParent()
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).
|
IWindow |
getSelf()
Returns the Window object's browsing context's WindowProxy object.
|
IWindow |
getTop()
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).
|
IWindow |
getWindow()
Returns the Window object's browsing context's WindowProxy object.
|
String |
prompt(String message,
String default_)
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.
|
void |
setName(String value)
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.
|
addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener
clearInterval, clearTimeout, setInterval, setInterval, setInterval, setInterval, setTimeout, setTimeout, setTimeout, setTimeout
getDefaultView
getDocumentView
@DOMNameAttribute(name="window") IWindow getWindow()
Returns the Window object's browsing context's WindowProxy object.
@DOMNameAttribute(name="self") IWindow getSelf()
Returns the Window object's browsing context's WindowProxy object.
@DOMNameAttribute(name="document") Document getDocument()
The document attribute must return the Window object's newest Document object.
Value: The document.@DOMNameAttribute(name="name") String getName()
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.
Value: The name.@DOMNameAttribute(name="name") void setName(String value)
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.
Value: The name.@DOMNameAttribute(name="location") Location getLocation()
The location attribute of the Window interface must return the Location object for that Window object's Document.
Value: The location.@DOMNameAttribute(name="top") IWindow getTop()
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).
@DOMNameAttribute(name="opener") IWindow getOpener()
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.
Value: The opener.@DOMNameAttribute(name="parent") IWindow getParent()
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).
Value: The parent.@DOMNameAttribute(name="frameElement") Element getFrameElement()
The frameElement object of a Document.
Value: The frame element.@DOMNameAttribute(name="alert") void alert(String message)
Displays a modal alert with the given message, and waits for the user to dismiss it
message
- The message.@DOMNameAttribute(name="confirm") boolean confirm(String message)
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.
message
- The message.@DOMNameAttribute(name="prompt") String prompt(String message, String default_)
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.
message
- The message.default
- The default.