Clear Up
SharpKit Reference

HtmlDocument Class

Represents an HTML document

Namespace: SharpKit.Html4

Base Types

System.Object

Constructors

Name Description
HtmlDocument()

Properties

Name Description
activeElement Gets the object that has the focus when the parent document has focus.
all Retrieves a collection of HTML Elements and TextNode objects that are descendants of the specified object.
body Gets the HtmlBody root element of this HtmlDocument
compatMode Gets a value that indicates whether standards-compliant mode is switched on for the object.
cookie Sets or gets the JsString value of a cookie.
defaultView Returns a reference to the default AbstractView for the document, or null if none available
documentElement Returns the root node for this HtmlDocument
forms Retrieves a collection, in source order, of all form objects in the document.
parentWindow Gets or sets the HtmlWindow object that contains this HtmlDocument
readyState Retrieves a value that indicates the current state of the object. uninitializedObject is not initialized with data. loadingObject is loading its data. loadedObject has finished loading its data. interactiveUser can interact with the object even though it is not fully loaded. completeObject is completely initialized.
selection Gets the HtmlSelection object of this HtmlDocument
styleSheets Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
title Gets the title of this HtmlDocument

Methods

Name Description
appendChild(HtmlElement)
attachEvent(JsString, HtmlDomEventHandler) Binds the specified function to an event, so that the function gets called whenever the event fires on the object.
close()
createComment(JsString) Creates a new comment node, and returns it.
createCSSStyleSheet(string, string)
createDocumentFragment() Creates a new document.
createElement(JsString) Creates a new HtmlElement
createElement<T>(JsString) Creates a new HtmlElement
createElement<T>()
createEventObject() Generates an event object to pass event context information when you use the fireEvent method.
createEventObject(HtmlDomEventArgs) Generates an event object to pass event context information when you use the fireEvent method.
createStyleSheet() Creates a new Stylesheet node
createStyleSheet(JsString) Creates a new Stylesheet node
createStyleSheet(JsNumber) Creates a new Stylesheet node
createStyleSheet(JsString, JsNumber) Creates a new Stylesheet node.
createTextNode(JsString) Creates a new TextNode
detachEvent(JsString, HtmlDomEventHandler) Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
elementFromPoint(JsNumber, JsNumber) Returns the element for the specified x coordinate and the specified y coordinate.
getElementById(JsString) Returns a reference to the first object with the specified value of the ID or NAME attribute (in IE)
getElementById<T>(JsString) Returns a reference to the first object with the specified value of the ID or NAME attribute (in IE)
getElementsByClassName(JsString)
getElementsByName(JsString) Gets a collection of objects based on the value of the NAME or ID attribute.
getElementsByTagName(JsString) Retrieves a collection of objects based on the specified element name.
open()
querySelectorAll(JsString)
write(JsString)

Indexers

Name Description
Item(JsString)
© Copyright 2005-2011 SharpKit. All rights reserved.