DHTML Methods

Switch View :
ScriptFree
DHTML Methods

This section contains a list of the methods exposed by the Dynamic HTML (DHTML) Object Model.

Methods

abort

The abort method terminates a pending send.

abort

Cancels the current HTTP request.

add

Creates a new namespace object and adds it to the collection.

add

Adds an element to the areas, controlRange, or options collection.

addBehavior

Attaches a behavior to the element.

AddChannel

Obsolete. Presents a dialog box that enables the user to add the specified channel, or to change the channel URL, if it is already installed.

addColorStop

Adds the specified colors and the position in a CanvasGradient object.

AddDesktopComponent

Adds a Web site or image to the Microsoft Active Desktop.

addElement

Adds an element to the controlRange collection.

addEventListener

Registers an event handler for the specified event type.

AddFavorite

Prompts the user with a dialog box to add the specified URL to the Favorites list.

addImport

Adds a style sheet to the imports collection for the specified style sheet.

addPageRule

Creates a new page object for a style sheet.

addRange

Adds a Range to the current selection.

addReadRequest

Obsolete. Adds an entry to the queue for read requests.

addRule

Creates a new rule for a style sheet.

AddSearchProvider

Adds a search provider to the registry.

AddService

User initiated action to add a service.

AddToFavoritesBar

Adds a URL to the Favorites Bar.

adoptNode

Tries to move a node from one document to the document that the document object displays.

alert

Displays a dialog box containing an application-defined message.

appendChild

Appends an element as a child to the object.

appendData

Adds a new character string to the end of the object.

appendMedium

Adds a medium to the end of the current list. If the medium is already used, it is first removed.

applyElement

Makes the element either a child or parent of another element.

arc

Adds points to a path that represents an arc.

arcTo

Draws an arc of a fixed radius between two tangents that are defined by the current point in a path and two additional points.

assign

Loads a new HTML document.

attachEvent

Binds the specified function to an event, so that the function gets called whenever the event fires on the object.

AutoCompleteSaveForm

Saves the specified form in the AutoComplete data store.

AutoScan

No longer available as of Windows Internet Explorer 7. Attempts to connect to a Web server by passing the specified query through completion templates.

back

Loads a previous URL from the History list.

beginPath

Resets the current path.

bezierCurveTo

Adds a point to the current subpath by using the specified control points that represent a cubic Bézier curve.

blur

Causes the element to lose focus and fires the onblur event.

bubbleEvent

Propagates an event up its containment hierarchy.

canPlayType

Returns a string that specifies whether the client can play a given media resource type.

ChooseColorDlg

Opens the system color-selection dialog box.

clear

Removes all key/value pairs from the Web Storage area.

clear

Clears the contents of the selection.

clear

Not supported.

clearAttributes

Removes all attributes and values from the object.

clearData

Removes one or more data formats from the clipboard through the dataTransfer object or the clipboardData object.

clearInterval

Cancels the interval previously started using the setInterval method.

clearRect

Clears the pixels on a CanvasRenderingContext2D object within a given rectangle.

clearRequest

Obsolete. Clears all requests in the read-requests queue to prepare for new profile-information requests.

clearTimeout

Cancels a time-out that was set with the setTimeout method.

clearWatch

Stops listening for updates to the current geographical location.

click

Simulates a click by causing the onclick event to fire.

clip

Specifies a new clipping region.

cloneContents

Returns a document fragment containing the nodes of a range. If any nodes are partially selected, their start or end nodes are included.

cloneNode

Copies a reference to the object from the document hierarchy.

cloneRange

Returns a new range with boundary points that are equal to the original range.

close

Closes an output stream and forces the sent data to display.

close

Closes the current browser window or HTML Application (HTA).

closePath

Closes the current subpath and starts a new subpath that has a start point that is equal to the end of the closed subpath.

collapse

Collapses (or removes) a range by moving the insertion point to the beginning or end of the current range.

collapse

Replaces the current selection with an empty selection (or a caret) at the given offset.

collapse

Moves the insertion point to the beginning or end of the current range.

collapseToEnd

Collapses or sets the insertion point or caret at the end of a selection object.

collapseToStart

Collapses, or sets the insertion point or caret at the beginning of a selection object.

compareBoundaryPoints

Compares two ranges by comparing their boundary points.

compareDocumentPosition

Compares the position of two nodes in a document.

compareEndPoints

Compares an end point of a TextRange object with an end point of another range.

componentFromPoint

Returns the component located at the specified coordinates via certain events.

confirm

Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

contains

Checks whether the given element is contained within the object.

ContentDiscoveryReset

Resets the list of feeds, search providers, and Web Slices associated with the page.

create

Creates a new img element of the specified width and height. This method cannot be called directly. See Image object.

create

Initializes a new option element. This method cannot be called directly. See Option object.

createAttribute

Creates an attribute object with a specified name.

createAttributeNS

Creates a reference to an attribute object that is associated with an XML namespace.

createCaption

Creates an empty caption element in the table.

createCDATASection

Creates a CDATA section that contains the specified text.

createComment

Creates a comment object with the specified data.

createControlRange

Creates a controlRange collection of nontext elements.

createDocument

Creates a document that is not attached to a window.

createDocumentFragment

Creates a new document.

createDocumentType

Creates a document type element.

createElement

Creates an instance of the element for the specified tag.

createElementNS

Creates an element from the specified namespace.

createEvent

Creates a Document Object Model (DOM) event of the specified type.

createEventObject

Generates an event object to pass event context information when you use the fireEvent method.

createHTMLDocument

Creates an HTML document.

createImageData

Returns a CanvasImageData object that has dimensions in CSS pixels.

createLinearGradient

Creates an object that represents a linear gradient to use in a canvas context.

createNodeIterator

Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.

createPattern

Returns a CanvasPattern object that repeats the specified element in the specified direction.

createPopup

Creates a popup window object.

createProcessingInstruction

Creates a processing instruction for an XML parser.

createRadialGradient

Returns an object that represents a radial or circular gradient to use in a canvas context.

createRange

Returns an empty range object that has both of its boundary points positioned at the beginning of the document.

createRange

Creates a TextRange object from the current text selection, or a controlRange collection from a control selection.

createRangeCollection

Creates a TextRange object collection from the current selection.

createStyleSheet

Creates a style sheet for the document.

createTBody

Creates an empty tBody element in the table.

createTextNode

Creates a text string from the specified value.

createTextRange

Creates a TextRange object for the element.

createTFoot

Creates an empty tFoot element in the table.

createTHead

Creates an empty tHead element in the table.

createTreeWalker

Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.

deleteCaption

Deletes the caption element and its contents from the table.

deleteCell

Removes the specified cell (td) from the table row, as well as from the cells collection.

deleteContents

Removes all contents within a selected range.

deleteData

Removes a specified range of characters from the object.

deleteFromDocument

Deletes the selected nodes from a document.

deleteMedium

Deletes a medium from the current list.

deleteRow

Removes the specified row (tr) from the element and from the rows collection.

deleteRule

Deletes a rule from the media block.

deleteRule

Deletes a rule from the style sheet.

deleteTFoot

Deletes the tFoot element and its contents from the table.

deleteTHead

Deletes the tHead element and its contents from the table.

detach

Removes or detaches an object and associated resources.

detachEvent

Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.

dispatchEvent

Sends an event to the current element.

doImport

Dynamically imports an element behavior.

doReadRequest

Obsolete. Performs all requests located in the read-requests queue.

doScroll

Simulates a click on a scroll bar component.

dragDrop

Initiates a drag event.

drawImage

Draws a specified image onto a canvas.

duplicate

Returns a duplicate of the TextRange.

elementFromPoint

Returns the element for the specified x coordinate and the specified y coordinate.

empty

Cancels the current selection, sets the selection type to none, and sets the item property to null.

end

Returns the end of the time range by using the specified index.

execCommand

Executes a command on the current document, current selection, or the given range.

execCommandShowHelp

Displays help information for the given command identifier.

execScript

Executes the specified script in the provided language.

expand

Expands the range so that partial units are completely contained.

extractContents

Removes the contents of a range from a document or document fragment and puts it a new document fragment.

fill

Fills subpaths by using the current fill style.

fillRect

Paints a rectangle onto a CanvasRenderingContext2D object by using the current fill style.

fillText

Renders filled text to the canvas by using the current fill style and font.

findText

Searches for text in the document and positions the start and end points of the range to encompass the search string.

fireEvent

Fires a specified event on the object.

firstChild

Retrieves a reference to the first child of the current node of the filtered TreeWalker hierarchy and updates currentNode.

firstPage

Displays the first page of records in the data set to which the table is bound.

focus

Causes the element to receive the focus and executes the code specified by the onfocus event.

forward

Loads the next URL from the History list.

getAdjacentText

Returns the adjacent text string.

getAllResponseHeaders

Returns the complete list of response headers.

getAttribute

Retrieves the value of the specified attribute.

getAttribute

Obsolete. Returns the value of the named attribute from the userProfile object.

getAttributeNode

Retrieves an attribute object referenced by the attribute.name property.

getAttributeNodeNS

Gets an attribute object that matches the specified namespace and name.

getAttributeNS

Gets the value of the specified attribute within the specified namespace.

getBookmark

Retrieves a bookmark (opaque string) that can be used with moveToBookmark to return to the same range.

getBoundingClientRect

Retrieves an object that specifies the bounds of a collection of TextRectangle objects.

getCharset

Gets a Variant that specifies the character set of a given font.

getClientRects

Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client. Each rectangle describes a single line.

getComputedStyle

Returns a currentStyle object containing the Cascading Style Sheets (CSS) settings that are applied to the specified element or a pseudo-element related to the specified element.

getContext

Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document.

getCurrentPosition

Obtains the geographic position, in terms of latitude and longitude coordinates, of the device running Internet Explorer.

getData

Gets the data in the specified format from the clipboard through the dataTransfer object or the clipboardData object.

getElementById

Returns a reference to the first object with the specified value of the ID or NAME attribute.

getElementsByClassName

Gets a collection of objects that are based on the value of the CLASS attribute.

getElementsByName

Gets a collection of objects based on the value of the NAME or ID attribute.

getElementsByTagName

Retrieves a collection of objects based on the specified element name.

getElementsByTagNameNS

Gets a collection of nodes that match an element name from the specified namespace.

getElementsByTagNameNS

Gets a collection of objects that are based on the specified element names within a specified namespace.

getExpression

Retrieves the expression for the given property.

getImageData

Returns an ICanvasImageData object that represents the pixel data for the specified rectangle on a canvas.

getItem

Retrieves the current value associated with the Web Storage key.

getModifierState

Queries the state of the specified modifier key.

getNamedItem

Gets an attribute specified with the name property, by using the attributes collection.

getNamedItemNS

Gets an attribute that is specified with the name property and namespace, by using the attributes collection.

getPropertyPriority

Gets the priority of a CSS property if the priority is explicitly set in the current declaration block.

getPropertyValue

Gets the value of a CSS property if it is explicitly set within the current declaration block.

getRangeAt

Returns a specified Range from a selection. The Range is specified by an index and cannot be greater than the number that is returned by rangeCount.

getResponseHeader

Returns the specified response header.

getSelection

Returns an object that represents the current selection of the document.

getSVGDocument

Returns a document object that represents a Scalable Vector Graphics (SVG)file loaded into the document.

go

Loads a URL from the History list.

hasAttribute

Determines whether an attribute with the specified name exists.

hasAttributeNS

Determines whether an attribute that has the specified namespace and name exists.

hasAttributes

Determines whether one or more attributes exist for the object.

hasChildNodes

Returns a value that indicates whether the object has children.

hasFeature

Returns a value that indicates whether the object implements a specific DOM standard.

hasFocus

Gets a value indicating whether the object currently has focus.

hide

Closes the pop-up window.

ImportExportFavorites

Deprecated. Handles the import and export of Internet Explorer favorites.

importNode

Imports a node from another document into the the document that the document object displays.

initCompositionEvent

Initializes a new text composition event that the createEvent method created.

initCustomEvent

Initializes a new custom event that the createEvent method created.

initDragEvent

Initializes a new drag event.

initEvent

Initializes a new generic event that the createEvent method created.

initFocusEvent

Initializes a new focus event that the createEvent method created.

initKeyboardEvent

Initializes a new keyboard event that the createEvent method created.

initMessageEvent

Initializes a new cross-document message (XDM) event that the createEvent method created.

initMouseEvent

Initializes a new mouse event that the createEvent method created.

initMouseWheelEvent

Initializes a new mouse wheel event that the createEvent method created.

initMutationEvent

Initializes a new DOM mutation (modification) event that the createEvent method created.

initStorageEvent

Initializes a new DOM storage event that the createEvent method created.

initTextEvent

Initializes a new text event that the createEvent method created.

initUIEvent

Initializes a new user interface event that the createEvent method created.

initWheelEvent

Initializes a new mouse wheel event that the createEvent method created.

InPrivateFilteringEnabled

Detects whether the user has enabled InPrivate Filtering.

inRange

Returns a value indicating whether one range is contained within another.

insertAdjacentElement

Inserts an element at the specified location.

insertAdjacentHTML

Inserts the given HTML text into the element at the location.

insertAdjacentText

Inserts the given text into the element at the specified location.

insertBefore

Inserts an element into the document hierarchy as a child node of a parent object.

insertCell

Creates a new cell in the table row (tr), and adds the cell to the cells collection.

insertData

Inserts a new character string in the object at a specified offset.

insertNode

Inserts a node into the start of a range object.

insertRow

Creates a new row (tr) in the table, and adds the row to the rows collection.

insertRule

Inserts a new rule into the media block.

insertRule

Inserts a new rule into the style sheet.

isDefaultNamespace

Indicates whether or not a namespace is the default namespace for a document.

isEqual

Returns a value indicating whether the specified range is equal to the current range.

isEqualNode

Determines if two nodes are equal.

isPointInPath

Determines if the specified point is in the current path.

isSameNode

Determines if two node references refer to the same node.

IsSearchProviderInstalled

Determines if a search provider has been installed for the current user and whether it is set as default.

IsServiceInstalled

Check if a service is already installed.

IsSubscribed

Obsolete. Retrieves a value indicating whether the client subscribes to the given channel.

isSupported

Returns a value indicating whether or not the object supports a specific DOM standard.

item

Retrieves an attribute for an element from an attributes collection.

item

Retrieves an object from a bookmarks collection.

item

Retrieves an object from a controlRange collection.

item

Retrieves an object from a documentCompatibleInfoCollection collection.

item

Retrieves an object from a childNodes or StaticNodeList collection.

item

Gets the medium at the position number that is indicated by an index in the current list.

item

Gets a property that has been explicitly set in the current declaration block.

item

Retrieves a namespace object from the namespaces collection.

item

Retrieves an object from the pages collection.

item

Retrieves an object from the rules collection.

item

Retrieves an object from various collections, including the all collection.

item

Retrieves an object from a collection.

item

Retrieves an object from the filters collection.

item

Retrieves a form object or an object from an elements collection.

item

Retrieves a select object or an object from an options collection.

item

Retrieves an object from a TextRange collection.

item

Retrieves an object from a TextRectangle collection.

item

Retrieves an object from an areas collection.

item

Retrieves an object from the behaviorUrns collection.

Item

Retrieves a string that specifies the name of a block format tag.

javaEnabled

Returns whether Java is enabled.

key

Retrieves the key at the specified index in the collection.

lastChild

Retrieves a reference to the last child of the current node of the filtered TreeWalker hierarchy and updates currentNode.

lastPage

Displays the last page of records in the data set to which the table is bound.

lineTo

Adds a new point to a subpath and connects that point to the last point in the subpath by using a straight line.

load

Resets the IHTMLMediaElement and loads a new media resource.

lookupNamespaceURI

Gets the Uniform Resource Identifier (URI) of the namespace associated with a namespace prefix, if any.

lookupPrefix

Gets the namespace prefix associated with a URI, if any.

matchMedium

Gets a value that indicates whether the specified media is supported by the object that displays the document object. This allows you to query the media or device, such as a mobile device, and customize the presentation from JavaScript.

measureText

Returns a CanvasTextMetrics object that contains the width of the specified text.

mergeAttributes

Copies all read/write attributes to the specified element.

move

Collapses the given text range and moves the empty range by the given number of units.

moveBy

Moves the screen position of the window by the specified x and y offset values.

moveEnd

Changes the end position of the range.

moveRow

Moves a table row to a new position.

moveStart

Changes the start position of the range.

moveTo

Creates a new subpath by using the specified point.

moveTo

Moves the screen position of the upper-left corner of the window to the specified x and y position.

moveToBookmark

Moves to a bookmark.

moveToElementText

Moves the text range so that the start and end positions of the range encompass the text in the given element.

moveToPoint

Moves the start and end positions of the text range to the given point.

msActiveXFilteringEnabled

Determines whether Microsoft ActiveX Filtering is enabled by the user.

msAddSiteMode

Creates a pinned site shortcut to the current webpage on the Windows Start menu.

msAddTrackingProtectionList

Adds an external Tracking Protection list.

msGetPropertyEnabled

Returns whether a given property in the style object is enabled.

msIsSiteMode

Determines whether the current page was launched as a pinned site.

msIsSiteModeFirstRun

Determines whether a pinned site was launched for the first time.

msMatchesSelector

Determines whether an object matches the specified selector.

msPutPropertyEnabled

Sets whether a given property in the style object is enabled.

msSiteModeActivate

Flashes the pinned site taskbar button.

msSiteModeAddButtonStyle

Defines an alternate icon image and tooltip for the specified button.

msSiteModeAddJumpListItem

Adds a new entry to the Jump List of a taskbar button.

msSiteModeAddThumbBarButton

Adds a button to the Thumbnail Toolbar.

msSiteModeClearIconOverlay

Removes the icon overlay from the taskbar button.

msSiteModeClearJumpList

Deletes the Jump List.

msSiteModeCreateJumpList

Creates a new group of items on the Jump List.

msSiteModeSetIconOverlay

Adds an icon overlay to the pinned site taskbar button.

msSiteModeShowButtonStyle

Changes the icon image and tooltip of a Thumbnail Toolbar button.

msSiteModeShowJumpList

Shows updates to the list of items in a Jump List.

msSiteModeShowThumbBar

Enables the Thumbnail Toolbar in the thumbnail preview of a pinned site.

msSiteModeUpdateThumbBarButton

Changes the state of a Thumbnail Toolbar button.

msTrackingProtectionEnabled

Determines whether any Tracking Protection lists are enabled by the user.

msWriteProfilerMark

Writes a profiling event.

namedItem

Retrieves an object from an areas collection.

namedItem

Retrieves an object or a collection from a specified collection.

namedItem

Retrieves a form object or an object from an elements collection.

namedItem

Retrieves a select object or an object from an options collection.

namedRecordset

Retrieves the recordset object corresponding to the named data member from a data source object (DSO).

navigate

Loads the specified URL to the current window.

NavigateAndFind

Navigates to the specified URL and selects the specified text.

Navigates to the specified URL and selects the specified text.nextNode

Returns the next node in the NodeIterator or TreeWalker list and updates currentNode.

nextPage

Displays the next page of records in the data set to which the table is bound.

nextSibling

Retrieves the next sibling of the current node in the filtered TreeWalker hierarchy and updates currentNode.

normalize

Merges adjacent DOM objects to produce a normalized document object model.

open

Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.

open

Opens a new window and loads the document specified by a given URL.

open

Creates a connection with a domain's server.

open

Assigns method, destination URL, and other optional attributes of a pending request.

parentElement

Retrieves the parent element for the given text range.

parentNode

Retrieves the parent object in the document hierarchy relative to the current node and updates currentNode.

parseFromString

Creates an instance of a document that contains a DOM tree from a string of serialized XML source.

pasteHTML

Pastes HTML text into the given text range, replacing any previous text and HTML elements in the range.

pause

Pauses the current playback and sets paused to true.

play

Loads and starts playback of a media resource.

postMessage

Sends a cross-document message.

preventDefault

Cancels the default action of an event.

previousNode

Returns the previous node in the NodeIterator or TreeWalker list and updates currentNode.

previousPage

Displays the previous page of records in the data set to which the table is bound.

previousSibling

Retrieves the previous sibling of the current node in the filtered TreeWalker hierarchy and updates currentNode.

print

Prints the document associated with the window.

prompt

Displays a dialog box that prompts the user with a message and an input field.

putImageData

Paints the data from a specified CanvasImageData object onto a canvas.

quadraticCurveTo

Adds a point to the current subpath by using the specified control points that represent a quadratic Bézier curve.

queryCommandEnabled

Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.

queryCommandIndeterm

Returns a Boolean value that indicates whether the specified command is in the indeterminate state.

queryCommandState

Returns a Boolean value that indicates the current state of the command.

queryCommandSupported

Returns a Boolean value that indicates whether the current command is supported on the current range.

queryCommandText

Retrieves the string associated with a command.

queryCommandValue

Returns the current value of the document, range, or current selection for the given command.

querySelector

Retrieves the first DOM element node from descendants of the starting element node that match any selector within the supplied selector string.

querySelectorAll

Retrieves all DOM element nodes from descendants of the starting element node that match any selector within the supplied selector strings.

raiseEvent

Triggers an event, as specified.

recalc

Recalculates all dynamic properties in the current document.

rect

Creates a new closed rectangular subpath.

refresh

Refreshes the content of the collection.

refresh

Refreshes the content of the table. This might be necessary after a call to a method such as removeRule, when the page does not automatically reflow.

releaseCapture

Removes mouse capture from the object in the current document.

reload

Reloads the current document.

remove

Removes an element from the collection.

removeAllRanges

Removes all ranges from a selection.

removeAttribute

Removes an attribute from an object.

removeAttributeNode

Removes an attribute object from the object.

removeAttributeNS

Removes the specified attribute from the object.

removeBehavior

Detaches a behavior from the element.

removeChild

Removes a child node from the object.

removeEventListener

Removes an event handler that the addEventListener method registered.

removeExpression

Removes the expression from the specified property.

removeImport

Removes the imported style sheet from the imports collection based on ordinal position.

removeItem

Deletes a key/value pair from the Web Storage collection.

removeNamedItem

Removes an attribute specified with the name property from an element by using the attributes collection.

removeNamedItemNS

Removes a named item that is specified by a namespace and local name.

removeNode

Removes the object from the document hierarchy.

removeProperty

Removes a CSS property if it is explicitly set within the current declaration block.

removeRange

Removes a range from a selection.

removeRule

Deletes an existing style rule for the styleSheet object, and adjusts the index of the rules collection accordingly.

replace

Replaces the current document by loading another document at the specified URL.

replaceAdjacentText

Replaces the text adjacent to the element.

replaceChild

Replaces an existing child element with a new child element.

replaceData

Replaces a specified range of characters in the object with a new character string.

replaceNode

Replaces the object with another element.

replaceWholeText

Replaces the text of the current object.

reset

Simulates a mouse click on a reset button for the calling form.

resizeBy

Changes the current size of the window by the specified x- and y-offset.

resizeTo

Sets the size of the window to the specified width and height values.

restore

Returns previously saved CanvasRenderingContext2D path state and attributes.

rotate

Rotates the current context coordinates (that is, a transformation matrix).

save

Saves the state of the current context.

scale

Scales the current context by the specified horizontal (x) and vertical (y) factors.

scroll

Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window.

scrollBy

Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.

scrollIntoView

Causes the object to scroll into view, aligning it either at the top or bottom of the window.

scrollTo

Scrolls the window to the specified x- and y-offset.

select

Highlights the input area of a form element.

select

Makes the selection equal to the current object.

selectAllChildren

Replaces the current selection with all the contents of the given node.

selectNode

Selects a range node and all of its contents.

selectNodeContents

Selects the contents within a node in a range.

send

Transmits a data string to the server for processing.

send

Sends an HTTP request to the server and receives a response.

serializeToString

Converts nodes in a Document Object Model (DOM) tree to a string that contains an XML representation of the tree.

setActive

Sets the object as active without setting focus to the object.

setAttribute

Sets the value of the specified attribute.

setAttributeNode

Sets an attribute object node as part of the object.

setAttributeNodeNS

Sets an attribute object as part of the object.

setAttributeNS

Sets the value of the specified attribute within the specified namespace.

setCapture

Sets the mouse capture to the object that belongs to the current document.

setContextMenu

Constructs a context menu, as specified.

setData

Assigns data in a specified format to the dataTransfer object or the clipboardData object.

setEnd

Sets the end point of the range.

setEndAfter

Sets the end of a range to a point after a specific node.

setEndBefore

Sets the end of the range to a point before a specific node.

setEndPoint

Sets the endpoint of one range based on the endpoint of another range.

setExpression

Sets an expression for the specified object.

setInterval

Evaluates an expression each time a specified number of milliseconds has elapsed.

setItem

Sets a key/value pair.

setNamedItem

Adds an attribute to an element by using an attributes collection.

setNamedItemNS

Adds an attribute to an element by using its namespaceURI and localName properties.

setProperty

Sets a property value and priority within the current declaration block.

setRequestHeader

Adds custom HTTP headers to the request.

setSelectionRange

Sets the start and end positions of a selection in a text field.

setStart

Sets the start point of a range.

setStartAfter

Sets the start point of the range to a point after a specific node.

setStartBefore

Sets the start point of a range to a point before a specific node.

setTimeout

Evaluates an expression after a specified number of milliseconds has elapsed.

setTransform

Resets the current transformation matrix of the current context back to its default and then multiplies it by the specified matrix.

show

Displays a pop-up window on the screen.

ShowBrowserUI

Opens the specified browser dialog box.

showHelp

Displays a Help file. This method can be used with Microsoft HTML Help.

showModalDialog

Creates a modal dialog box that displays the specified HTML document.

showModelessDialog

Creates a modeless dialog box that displays the specified HTML document.

splitText

Divides a text node at the specified index.

start

Gets the start of the time range by using the specified index.

start

Starts scrolling the marquee.

stop

Stops the marquee from scrolling.

stopImmediatePropagation

Prevents any further propagation of an event.

stopPropagation

Prevents propagation of an event beyond the current target.

stroke

Renders the strokes of the current subpath by using the current stroke styles.

strokeRect

Creates an outline of the specified rectangle on a canvas by using the current stroke, line width, and join styles.

strokeText

Renders the specified text at the specified position by using the current font and strokeStyle property.

submit

Submits the form.

substringData

Extracts a range of characters from the object.

surroundContents

Moves the contents of a Range to a new parent node, placing the new parent node at the start position of the Range.

swapNode

Exchanges the location of two objects in the document hierarchy.

tags

Retrieves a collection of objects that have the specified HTML tag name.

taintEnabled

Returns whether data tainting is enabled.

toDataURL

Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element (such as img).

toJSON

Returns the calling object as a JavaScript Object Notation (JSON) object.

toStaticHTML

Removes dynamic HTML elements and attributes from an HTML fragment.

transform

Modifies the transformation matrix of the current context.

translate

Specifies values to move the origin point in a canvas.

updateSettings

Allows updating the print settings for the page.

urns

Retrieves a collection of all objects to which a specified behavior is attached.

watchPosition

Begins listening for updates to the current geographical location of the device running the client.

write

Writes one or more HTML expressions to a document in the specified window.

writeln

Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.

Community Content

Mr. Raymond Kenneth Petry
Additional methods

expression

Dynamically or continually adjusts an attribute or property. Applies to: style. Syntax: style='attribute:expression(...)'

e.g. #1. <style> body {zoom:expression(screen.width/1024)} //dynamically zooms the document body to fit your PC.
e.g. #2. <item style=display:expression(dfunction(this))> //continually re-decides whether to display this item.

SEE ALSO: recalc method, availWidth property (excludes the taskbar: if vertical).

Date

Returns the instantaneous local date+time as a string. Applies to: window. Syntax: window.Date()

N.B. This is similar to the Date object but does not include the UTC-Zone-mark. (SEE Date Object)