IWindow Interface
The window object represents a window containing a DOM document.

Namespace: Aspose.Html.Window
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.11
Syntax
public interface IWindow : IEventTarget, 
	IGlobalEventHandlers, IWindowEventHandlers, IWindowTimers, IDocumentView, IAbstractView, 
	IDisposable

The IWindow type exposes the following members.

Properties
  NameDescription
Public propertyDefaultView
The default AbstractView for this Document, or null if none available.
(Inherited from IDocumentView.)
Public propertyDocument
The document attribute must return the Window object's newest Document object.
Public propertyFrameElement
The frameElement object of a Document.
Public propertyLocation
The location attribute of the Window interface must return the Location object for that Window object's Document.
Public propertyName
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.
Public propertyOpener
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.
Public propertyParent
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).
Public propertySelf
Returns the Window object's browsing context's WindowProxy object.
Public propertyTop
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).
Public propertyWindow
Returns the Window object's browsing context's WindowProxy object.
Methods
  NameDescription
Public methodAddEventListener(String, IEventListener)

The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target.

Common targets are Element, Document, and Window, but the target may be any object that supports events (such as XMLHttpRequest).

(Inherited from IEventTarget.)
Public methodAddEventListener(String, IEventListener, Boolean)

The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target.

Common targets are Element, Document, and Window, but the target may be any object that supports events (such as XMLHttpRequest).

(Inherited from IEventTarget.)
Public methodAlert
Displays a modal alert with the given message, and waits for the user to dismiss it
Public methodClearInterval
Cancels the timeout set with setInterval() identified by handle
(Inherited from IWindowTimers.)
Public methodClearTimeout
Cancels the timeout set with setTimeout() identified by handle.
(Inherited from IWindowTimers.)
Public methodConfirm
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.
Public methodDispatchEvent

Dispatches an Event at the specified EventTarget, (synchronously) invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

(Inherited from IEventTarget.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodPrompt
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.
Public methodRemoveEventListener(String, IEventListener)

This method allows the removal of event listeners from the event target. If an is removed from an while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.

(Inherited from IEventTarget.)
Public methodRemoveEventListener(String, IEventListener, Boolean)

This method allows the removal of event listeners from the event target. If an is removed from an while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.

(Inherited from IEventTarget.)
Public methodSetInterval
Schedules a timeout to run handler every timeout milliseconds. Any arguments are passed straight through to the handler.
(Inherited from IWindowTimers.)
Public methodSetTimeout
Schedules a timeout to run handler after timeout milliseconds. Any arguments are passed straight through to the handler.
(Inherited from IWindowTimers.)
Events
  NameDescription
Public eventOnAbort
Gets or sets event handler for OnAbort event.
(Inherited from IGlobalEventHandlers.)
Public eventOnAfterPrint
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnBeforePrint
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnBeforeUnload
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnBlur
Gets or sets event handler for OnBlur event.
(Inherited from IGlobalEventHandlers.)
Public eventOnCancel
Gets or sets event handler for OnCancel event.
(Inherited from IGlobalEventHandlers.)
Public eventOnCanplay
Gets or sets event handler for OnCanplay event.
(Inherited from IGlobalEventHandlers.)
Public eventOnCanPlayThrough
Gets or sets event handler for OnCanPlayThrough event.
(Inherited from IGlobalEventHandlers.)
Public eventOnChange
Gets or sets event handler for OnChange event.
(Inherited from IGlobalEventHandlers.)
Public eventOnClick
Gets or sets event handler for OnClick event.
(Inherited from IGlobalEventHandlers.)
Public eventOnCueChange
Gets or sets event handler for OnCueChange event.
(Inherited from IGlobalEventHandlers.)
Public eventOnDblClick
Gets or sets event handler for OnDblClick event.
(Inherited from IGlobalEventHandlers.)
Public eventOnDurationChange
Gets or sets event handler for OnDurationChange event.
(Inherited from IGlobalEventHandlers.)
Public eventOnEmptied
Gets or sets event handler for OnEmptied event.
(Inherited from IGlobalEventHandlers.)
Public eventOnEnded
Gets or sets event handler for OnEnded event.
(Inherited from IGlobalEventHandlers.)
Public eventOnError
Gets or sets event handler for OnError event.
(Inherited from IGlobalEventHandlers.)
Public eventOnFocus
Gets or sets event handler for OnFocus event.
(Inherited from IGlobalEventHandlers.)
Public eventOnHashChange
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnInput
Gets or sets event handler for OnInput event.
(Inherited from IGlobalEventHandlers.)
Public eventOnInvalid
Gets or sets event handler for OnInvalid event.
(Inherited from IGlobalEventHandlers.)
Public eventOnKeyDown
Gets or sets event handler for OnKeyDown event.
(Inherited from IGlobalEventHandlers.)
Public eventOnKeyPress
Gets or sets event handler for OnKeyPress event.
(Inherited from IGlobalEventHandlers.)
Public eventOnKeyUp
Gets or sets event handler for OnKeyUp event.
(Inherited from IGlobalEventHandlers.)
Public eventOnLoad
Gets or sets event handler for OnLoad event.
(Inherited from IGlobalEventHandlers.)
Public eventOnLoadedData
Gets or sets event handler for OnLoadedData event.
(Inherited from IGlobalEventHandlers.)
Public eventOnLoadedMetadata
Gets or sets event handler for OnLoadedMetadata event.
(Inherited from IGlobalEventHandlers.)
Public eventOnLoadStart
Gets or sets event handler for OnLoadStart event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMessage
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnMouseDown
Gets or sets event handler for OnMouseDown event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseEnter
Gets or sets event handler for OnMouseEnter event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseLeave
Gets or sets event handler for OnMouseLeave event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseMove
Gets or sets event handler for OnMouseMove event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseOut
Gets or sets event handler for OnMouseOut event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseOver
Gets or sets event handler for OnMouseOver event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseUp
Gets or sets event handler for OnMouseUp event.
(Inherited from IGlobalEventHandlers.)
Public eventOnMouseWheel
Gets or sets event handler for OnMouseWheel event.
(Inherited from IGlobalEventHandlers.)
Public eventOnOffline
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnOnline
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnPageHide
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnPageShow
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnPause
Gets or sets event handler for OnPause event.
(Inherited from IGlobalEventHandlers.)
Public eventOnPlay
Gets or sets event handler for OnPlay event.
(Inherited from IGlobalEventHandlers.)
Public eventOnPlaying
Gets or sets event handler for OnPlaying event.
(Inherited from IGlobalEventHandlers.)
Public eventOnPopState
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnProgress
Gets or sets event handler for OnProgress event.
(Inherited from IGlobalEventHandlers.)
Public eventOnRateChange
Gets or sets event handler for OnRateChange event.
(Inherited from IGlobalEventHandlers.)
Public eventOnReset
Gets or sets event handler for OnReset event.
(Inherited from IGlobalEventHandlers.)
Public eventOnResize
Gets or sets event handler for OnResize event.
(Inherited from IGlobalEventHandlers.)
Public eventOnScroll
Gets or sets event handler for OnScroll event.
(Inherited from IGlobalEventHandlers.)
Public eventOnSeeked
Gets or sets event handler for OnSeeked event.
(Inherited from IGlobalEventHandlers.)
Public eventOnSeeking
Gets or sets event handler for OnSeeking event.
(Inherited from IGlobalEventHandlers.)
Public eventOnSelect
Gets or sets event handler for OnSelect event.
(Inherited from IGlobalEventHandlers.)
Public eventOnShow
Gets or sets event handler for OnShow event.
(Inherited from IGlobalEventHandlers.)
Public eventOnStalled
Gets or sets event handler for OnStalled event.
(Inherited from IGlobalEventHandlers.)
Public eventOnStorage
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnSubmit
Gets or sets event handler for OnSubmit event.
(Inherited from IGlobalEventHandlers.)
Public eventOnSuspend
Gets or sets event handler for OnSuspend event.
(Inherited from IGlobalEventHandlers.)
Public eventOnTimeUpdate
Gets or sets event handler for OnTimeUpdate event.
(Inherited from IGlobalEventHandlers.)
Public eventOnToggle
Gets or sets event handler for OnToggle event.
(Inherited from IGlobalEventHandlers.)
Public eventOnUnload
Gets or sets event handler
(Inherited from IWindowEventHandlers.)
Public eventOnVolumeChange
Gets or sets event handler for OnVolumeChange event.
(Inherited from IGlobalEventHandlers.)
Public eventOnWaiting
Gets or sets event handler for OnWaiting event.
(Inherited from IGlobalEventHandlers.)
See Also