This documentation is archived and is not being maintained.

HtmlWindow Members

Represents the logical window that contains one or more instances of HtmlDocument.

The following tables list the members exposed by the HtmlWindow type.

  Name Description
Public property Document Gets the HTML document contained within the window.
Public property DomWindow Gets the unmanaged interface wrapped by this class.
Public property Frames Gets a reference to each of the FRAME elements defined within the Web page.
Public property History Gets an object containing the user's most recently visited URLs.
Public property IsClosed Gets a value indicating whether this window is open or closed.
Public property Name Gets or sets the name of the window.
Public property Opener Gets a reference to the window that opened the current window.
Public property Parent Gets the window which resides above the current one in a page containing frames.
Public property Position Gets the position of the window's client area on the screen.
Public property Size Gets or sets the size of the current window.
Public property StatusBarText Gets or sets the text displayed in the status bar of a window.
Public property Url Gets the URL corresponding to the current item displayed in the window.
Public property WindowFrameElement Gets the frame element corresponding to this window.
Top

(see also Protected Methods )
  Name Description
Public method Alert Displays a message box.
Public method AttachEventHandler Adds an event handler for the named HTML DOM event.
Public method Close Closes the window.
Public method Confirm Displays a dialog box with a message and buttons to solicit a yes/no response.
Public method DetachEventHandler Removes the named event handler.
Public method Equals Overloaded. Overridden. Tests the object for equality against the current object.
Public method Focus Puts the focus on the current window.
Public method GetHashCode Overridden.  
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method MoveTo Overloaded. Moves the window to the specified coordinates on the screen.
Public method Navigate Overloaded. Displays or downloads the new content located at the specified URL.
Public method Static op_Equality Tests the two HtmlWindow objects for equality.
Public method Static op_Inequality Tests two HtmlWindow objects for inequality.
Public method Open Overloaded. Displays a file in the named window.
Public method OpenNew Overloaded. Displays a file in a new window.
Public method Prompt Shows a dialog box that displays a message and a text box to the user.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method RemoveFocus Takes focus off of the current window.
Public method ResizeTo Overloaded. Changes the size of the window to the specified dimensions.
Public method ScrollTo Overloaded. Scrolls the window to the designated position.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Public event Error Occurs when script running inside of the window encounters a run-time error.
Public event GotFocus Occurs when the current window obtains user input focus.
Public event Load Occurs when the window's document and all of its elements have finished initializing.
Public event LostFocus Occurs when user input focus has left the window.
Public event Resize Occurs when the user uses the mouse to change the dimensions of the window.
Public event Scroll Occurs when the user scrolls through the window to view off-screen text.
Public event Unload Occurs when the current page is unloading, and a new page is about to be displayed.
Top
Show: