Methods
This section describes the methods associates with various Document Object Model (DOM) objects.
In this section
| Topic | Description |
|---|---|
|
Provides an asynchronous and non-blocking way to transmit data to a provided URL. | |
|
Obsolete. Adds an entry to the queue for read requests. | |
|
Tries to move a node from one document to the document that the document object displays. | |
|
Appends an element as a child to the object. | |
|
Adds a new character string to the end of the object. | |
|
Loads a new HTML document. | |
|
Saves the specified form in the AutoComplete data store. | |
|
Obsolete as of Windows Internet Explorer 7. Attempts to connect to a Web server by passing the specified query through completion templates. | |
|
Loads a previous URL from the History list. | |
|
Function to invoke if an MSLaunchURI call for a system protocol is successful | |
|
No appreciable effect. Do not use. | |
|
To clear all elements in the current document, use document.write(""), followed by document.close. | |
|
Obsolete. Clears all requests in the read-requests queue to prepare for new profile-information requests. | |
|
Copies a reference to the object from the document hierarchy. | |
|
Closes the view (window). | |
|
Compares the position of two nodes in a document. | |
|
Indicates whether an exception exists for a given domain. | |
|
Indicates whether an exception exists for services from a given domain. | |
|
Test if a string is part of this DOMStringList. | |
|
Resets the list of feeds, search providers, and Web Slices associated with the page. | |
|
Creates a reference to an attribute object that is associated with an XML namespace. | |
|
Creates a CDATA section that contains the specified text. | |
|
Creates a new document. | |
|
Creates a document type element. | |
|
Creates an instance of the element for the specified tag. | |
|
Creates an element from the specified namespace. | |
|
Creates an HTML document. | |
|
Creates a processing instruction for an XML parser. | |
|
Creates a text string from the specified value. | |
|
Removes a specified range of characters from the object. | |
|
Stops a MutationObserver from monitoring changes to the DOM nodes registered to it. | |
|
Dynamically imports an element behavior. | |
|
Returns the element for the specified x coordinate and the specified y coordinate. | |
|
Note
execScript is no longer supported. Starting with Internet Explorer 11, use eval. For info, see Compatibility changes.
Executes the specified script in the provided language. | |
|
Causes an element to stop being displayed in full-screen mode. | |
|
Exits the document out of pointer lock state. | |
|
Loads the next URL from the History list. | |
|
Returns the adjacent text string. | |
|
Retrieves an attribute object referenced by the attribute.name property. | |
|
Gets an attribute object that matches the specified namespace and name. | |
|
Gets the value of the specified attribute within the specified namespace. | |
|
Returns a ClientRect object with candidate window coordinate space information (if the Input Method Editor (IME) candidate window is visible). | |
|
Returns a copy of the current list of alternate candidate strings from the MSInputMethodContext object. | |
|
Returns a reference to the first object with the specified value of the ID or NAME attribute. | |
|
Gets a collection of objects based on the value of the NAME or ID attribute. | |
|
Gets a collection of objects that are based on the specified element names within a specified namespace. | |
|
Gets a collection of nodes that match an element name from the specified namespace. | |
|
Provides information on the specified characteristic(s) of the user's system. | |
|
Returns the MSInputMethodContext associated with the calling element. | |
|
Gets an attribute specified with the name property, by using the attributes collection. | |
|
Gets an attribute that is specified with the name property and namespace, by using the attributes collection. | |
|
Loads a URL from the History list. | |
|
Determines whether an attribute with the specified name exists. | |
|
Determines whether an attribute that has the specified namespace and name exists. | |
|
Returns a value that indicates whether the object has children. | |
|
Determines if there is a composition in progress on the element associated with the MSInputMethodContext. | |
|
Returns a value that indicates whether the object implements a specific DOM standard. | |
|
Imports a node from another document into the the document that the document object displays. | |
|
Detects whether the user has enabled InPrivate Filtering. | |
|
Inserts an element at the specified location. | |
|
Inserts the given HTML text into the element at the location. | |
|
Inserts the given text into the element at the specified location. | |
|
Inserts an element into the document hierarchy as a child node of a parent object. | |
|
Inserts a new character string in the object at a specified offset. | |
|
Returns true if the IME candidate window UI is visible, and false otherwise. | |
|
Indicates whether or not a namespace is the default namespace for a document. | |
|
Determines if two nodes are equal. | |
|
Determines if two node references refer to the same node. | |
|
Returns a value indicating whether or not the object supports a specific DOM standard. | |
|
Retrieves an object from a bookmarks collection. | |
|
Provides index based access for items in a pluginArray, plugin, or MimeTypeArray | |
|
Returns whether Java is enabled. | |
|
Gets the Uniform Resource Identifier (URI) of the namespace associated with a namespace prefix, if any. | |
|
Gets the namespace prefix associated with a URI, if any. | |
|
Determines whether Microsoft ActiveX Filtering is enabled by the user. | |
|
Adds an external Tracking Protection list. | |
|
This section describes MSApp methods, which support Windows Store apps using JavaScript. | |
|
Returns a node list of elements that are “underneath” or intersect a point defined by given x/y coordinates. | |
|
Returns an node list of elements that are under a rectangle defined by left, top, width, and height. | |
|
Retrieves the object that is the target of the specified weak reference that was created by the msSetWeakWinRTProperty function. | |
|
This method is used to start a service or app, such as an email client, that handles a given protocol. The URI contains the protocol for the default service or app, such as mailto://john@contoso.com. | |
|
Attempts to configure a connection profile using credentials specified in an XML document. | |
|
Reports the current URL as a safe URL. | |
|
Retrieves the object that is the target of the specified weak reference that was created by the msSetWeakWinRTProperty function. | |
|
Determines whether any Tracking Protection lists are enabled by the user. | |
|
Returns an object by its id or name from an array. | |
|
Loads the specified URL to the current window. | |
|
Merges adjacent DOM objects to produce a normalized document object model. | |
|
Registers a node to observe and specifies the change information to record. | |
|
Asynchronously posts the provided message to the message queue of the target window corresponding to the MSAppView object. | |
|
Pushes the given data with the given title, and the given URL, if provided, onto the session history . | |
|
This method is supported only for older scripts. It does not affect pluginArray. | |
|
Refreshes the content of the collection. Note This behavior is not implemented in Windows apps using JavaScript.
| |
|
No appreciable effect. Do not use. | |
|
Reloads the current document. | |
|
Removes an attribute object from the object. | |
|
Removes the specified attribute from the object. | |
|
Removes a child node from the object. | |
|
Removes an attribute specified with the name property from an element by using the attributes collection. | |
|
Removes a named item that is specified by a namespace and local name. | |
|
Removes the object from the document hierarchy. | |
|
Removes a previously-granted tracking exception for a domain. | |
|
Removes a previously-granted tracking exception for a service host. | |
|
Replaces the current document by loading another document at the specified URL. | |
|
Replaces an existing child element with a new child element. | |
|
Replaces a specified range of characters in the object with a new character string. | |
|
Replaces the object with another element. | |
|
Updates the current entry in the session history to have the given data, title, and, if provided, URL. | |
|
Replaces the text of the current object. | |
|
Request that the browser display an element in full-screen mode. | |
|
Requests that the pointer be locked to the target element. | |
|
Sets an attribute object node as part of the object. | |
|
Sets an attribute object as part of the object. | |
|
Sets the value of the specified attribute within the specified namespace. | |
|
(Deprecated as of Microsoft Edge.) Assigns data in a specified format to the dataTransfer object or the clipboardData object. | |
|
Adds an attribute to an element by using an attributes collection. | |
|
Adds an attribute to an element by using its namespaceURI and localName properties. | |
|
Opens the specified browser dialog box. | |
|
Displays a Help file. This method can be used with Microsoft HTML Help. | |
|
Divides a text node at the specified index. | |
|
Requests an exemption to the "Do not Track" (DNT) rule for a given website. | |
|
Requests an exemption to the "Do not Track" (DNT) rule for services used by other websites. | |
|
Extracts a range of characters from the object. | |
|
Exchanges the location of two objects in the document hierarchy. | |
|
Returns whether data tainting is enabled. | |
|
Empties the MutationObserver's record queue and returns what was previously there. | |
|
Adds a token if it is not present, or removes it if it is. Returns | |
|
Stringifies the token list. | |
|
Returns the name property of a DOMError and any associated message defined with the error. |