This section contains a list of the methods exposed by the Dynamic HTML (DHTML) Object Model.
Methods
abortThe abort method terminates a pending send.
abortCancels the current HTTP request.
addCreates a new namespace object and adds it to the collection.
addAdds an element to the areas, controlRange, or options collection.
addBehaviorAttaches 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.
addColorStopAdds the specified colors and the position in a CanvasGradient object.
AddDesktopComponent
Adds a Web site or image to the Microsoft Active Desktop.
addElementAdds an element to the controlRange collection.
addEventListenerRegisters 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.
addImportAdds a style sheet to the imports collection for the specified style sheet.
addPageRuleCreates a new page object for a style sheet.
addRangeAdds a Range to the current selection.
addReadRequest
Obsolete. Adds an entry to the queue for read requests.
addRuleCreates 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.
adoptNodeTries 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.
appendChildAppends an element as a child to the object.
appendDataAdds a new character string to the end of the object.
appendMediumAdds a medium to the end of the current list. If the medium is already used, it is first removed.
applyElementMakes the element either a child or parent of another element.
arcAdds points to a path that represents an arc.
arcToDraws an arc of a fixed radius between two tangents that are defined by the current point in a path and two additional points.
assignLoads a new HTML document.
attachEventBinds 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.
beginPathResets the current path.
bezierCurveToAdds a point to the current subpath by using the specified control points that represent a cubic Bézier curve.
blurCauses the element to lose focus and fires the onblur event.
bubbleEventPropagates an event up its containment hierarchy.
canPlayTypeReturns a string that specifies whether the client can play a given media resource type.
ChooseColorDlgOpens the system color-selection dialog box.
clearRemoves all key/value pairs from the Web Storage area.
clearClears the contents of the selection.
clearNot supported.
clearAttributesRemoves all attributes and values from the object.
clearDataRemoves one or more data formats from the clipboard through the dataTransfer object or the clipboardData object.
clearIntervalCancels the interval previously started using the setInterval method.
clearRectClears 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.
clearTimeoutCancels a time-out that was set with the setTimeout method.
clearWatchStops listening for updates to the current geographical location.
clickSimulates a click by causing the onclick event to fire.
clipSpecifies a new clipping region.
cloneContentsReturns a document fragment containing the nodes of a range. If any nodes are partially selected, their start or end nodes are included.
cloneNodeCopies a reference to the object from the document hierarchy.
cloneRangeReturns a new range with boundary points that are equal to the original range.
closeCloses an output stream and forces the sent data to display.
close
Closes the current browser window or HTML Application (HTA).
closePathCloses the current subpath and starts a new subpath that has a start point that is equal to the end of the closed subpath.
collapseCollapses (or removes) a range by moving the insertion point to the beginning or end of the current range.
collapseReplaces the current selection with an empty selection (or a caret) at the given offset.
collapseMoves the insertion point to the beginning or end of the current range.
collapseToEndCollapses or sets the insertion point or caret at the end of a selection object.
collapseToStartCollapses, or sets the insertion point or caret at the beginning of a selection object.
compareBoundaryPointsCompares two ranges by comparing their boundary points.
compareDocumentPositionCompares the position of two nodes in a document.
compareEndPointsCompares an end point of a TextRange object with an end point of another range.
componentFromPointReturns 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.
containsChecks whether the given element is contained within the object.
ContentDiscoveryReset
Resets the list of feeds, search providers, and Web Slices associated with the page.
createCreates a new img element of the specified width and height. This method cannot be called directly. See Image object.
createInitializes a new option element. This method cannot be called directly. See Option object.
createAttributeCreates an attribute object with a specified name.
createAttributeNSCreates a reference to an attribute object that is associated with an XML namespace.
createCaptionCreates an empty caption element in the table.
createCDATASectionCreates a CDATA section that contains the specified text.
createCommentCreates a comment object with the specified data.
createControlRangeCreates a controlRange collection of nontext elements.
createDocumentCreates a document that is not attached to a window.
createDocumentFragmentCreates a new document.
createDocumentTypeCreates a document type element.
createElementCreates an instance of the element for the specified tag.
createElementNSCreates an element from the specified namespace.
createEventCreates a Document Object Model (DOM) event of the specified type.
createEventObjectGenerates an event object to pass event context information when you use the fireEvent method.
createHTMLDocumentCreates an HTML document.
createImageDataReturns a CanvasImageData object that has dimensions in CSS pixels.
createLinearGradientCreates an object that represents a linear gradient to use in a canvas context.
createNodeIteratorCreates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
createPatternReturns a CanvasPattern object that repeats the specified element in the specified direction.
createPopupCreates a popup window object.
createProcessingInstructionCreates a processing instruction for an XML parser.
createRadialGradientReturns an object that represents a radial or circular gradient to use in a canvas context.
createRangeReturns an empty range object that has both of its boundary points positioned at the beginning of the document.
createRangeCreates a TextRange object from the current text selection, or a controlRange collection from a control selection.
createRangeCollectionCreates a TextRange object collection from the current selection.
createStyleSheetCreates a style sheet for the document.
createTBodyCreates an empty tBody element in the table.
createTextNodeCreates a text string from the specified value.
createTextRangeCreates a TextRange object for the element.
createTFootCreates an empty tFoot element in the table.
createTHeadCreates an empty tHead element in the table.
createTreeWalkerCreates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
deleteCaptionDeletes the caption element and its contents from the table.
deleteCellRemoves the specified cell (td) from the table row, as well as from the cells collection.
deleteContentsRemoves all contents within a selected range.
deleteDataRemoves a specified range of characters from the object.
deleteFromDocumentDeletes the selected nodes from a document.
deleteMediumDeletes a medium from the current list.
deleteRowRemoves the specified row (tr) from the element and from the rows collection.
deleteRuleDeletes a rule from the media block.
deleteRuleDeletes a rule from the style sheet.
deleteTFootDeletes the tFoot element and its contents from the table.
deleteTHeadDeletes the tHead element and its contents from the table.
detachRemoves or detaches an object and associated resources.
detachEventUnbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
dispatchEventSends an event to the current element.
doImportDynamically imports an element behavior.
doReadRequest
Obsolete. Performs all requests located in the read-requests queue.
doScrollSimulates a click on a scroll bar component.
dragDropInitiates a drag event.
drawImageDraws a specified image onto a canvas.
duplicateReturns a duplicate of the TextRange.
elementFromPointReturns the element for the specified x coordinate and the specified y coordinate.
emptyCancels the current selection, sets the selection type to none, and sets the item property to
endnull.Returns the end of the time range by using the specified index.
execCommandExecutes a command on the current document, current selection, or the given range.
execCommandShowHelpDisplays help information for the given command identifier.
execScriptExecutes the specified script in the provided language.
expandExpands the range so that partial units are completely contained.
extractContentsRemoves the contents of a range from a document or document fragment and puts it a new document fragment.
fillFills subpaths by using the current fill style.
fillRectPaints a rectangle onto a CanvasRenderingContext2D object by using the current fill style.
fillTextRenders filled text to the canvas by using the current fill style and font.
findTextSearches for text in the document and positions the start and end points of the range to encompass the search string.
fireEventFires a specified event on the object.
firstChildRetrieves a reference to the first child of the current node of the filtered TreeWalker hierarchy and updates currentNode.
firstPageDisplays the first page of records in the data set to which the table is bound.
focusCauses the element to receive the focus and executes the code specified by the onfocus event.
forward
Loads the next URL from the History list.
getAdjacentTextReturns the adjacent text string.
getAllResponseHeadersReturns the complete list of response headers.
getAttributeRetrieves the value of the specified attribute.
getAttribute
Obsolete. Returns the value of the named attribute from the userProfile object.
getAttributeNodeRetrieves an attribute object referenced by the attribute.name property.
getAttributeNodeNSGets an attribute object that matches the specified namespace and name.
getAttributeNSGets the value of the specified attribute within the specified namespace.
getBookmarkRetrieves a bookmark (opaque string) that can be used with moveToBookmark to return to the same range.
getBoundingClientRectRetrieves an object that specifies the bounds of a collection of TextRectangle objects.
getCharsetGets a Variant that specifies the character set of a given font.
getClientRectsRetrieves 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.
getComputedStyleReturns 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.
getContextReturns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document.
getCurrentPositionObtains the geographic position, in terms of latitude and longitude coordinates, of the device running Internet Explorer.
getDataGets the data in the specified format from the clipboard through the dataTransfer object or the clipboardData object.
getElementByIdReturns a reference to the first object with the specified value of the ID or NAME attribute.
getElementsByClassNameGets a collection of objects that are based on the value of the CLASS attribute.
getElementsByNameGets a collection of objects based on the value of the NAME or ID attribute.
getElementsByTagNameRetrieves a collection of objects based on the specified element name.
getElementsByTagNameNSGets a collection of nodes that match an element name from the specified namespace.
getElementsByTagNameNSGets a collection of objects that are based on the specified element names within a specified namespace.
getExpressionRetrieves the expression for the given property.
getImageDataReturns an ICanvasImageData object that represents the pixel data for the specified rectangle on a canvas.
getItemRetrieves the current value associated with the Web Storage key.
getModifierStateQueries the state of the specified modifier key.
getNamedItemGets an attribute specified with the name property, by using the attributes collection.
getNamedItemNSGets an attribute that is specified with the name property and namespace, by using the attributes collection.
getPropertyPriorityGets the priority of a CSS property if the priority is explicitly set in the current declaration block.
getPropertyValueGets the value of a CSS property if it is explicitly set within the current declaration block.
getRangeAtReturns 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.
getResponseHeaderReturns the specified response header.
getSelectionReturns an object that represents the current selection of the document.
getSVGDocumentReturns a document object that represents a Scalable Vector Graphics (SVG)file loaded into the document.
go
Loads a URL from the History list.
hasAttributeDetermines whether an attribute with the specified name exists.
hasAttributeNSDetermines whether an attribute that has the specified namespace and name exists.
hasAttributesDetermines whether one or more attributes exist for the object.
hasChildNodesReturns a value that indicates whether the object has children.
hasFeatureReturns a value that indicates whether the object implements a specific DOM standard.
hasFocusGets 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.
importNodeImports a node from another document into the the document that the document object displays.
initCompositionEventInitializes a new text composition event that the createEvent method created.
initCustomEventInitializes a new custom event that the createEvent method created.
initDragEventInitializes a new drag event.
initEventInitializes a new generic event that the createEvent method created.
initFocusEventInitializes a new focus event that the createEvent method created.
initKeyboardEventInitializes a new keyboard event that the createEvent method created.
initMessageEventInitializes a new cross-document message (XDM) event that the createEvent method created.
initMouseEventInitializes a new mouse event that the createEvent method created.
initMouseWheelEventInitializes a new mouse wheel event that the createEvent method created.
initMutationEventInitializes a new DOM mutation (modification) event that the createEvent method created.
initStorageEventInitializes a new DOM storage event that the createEvent method created.
initTextEventInitializes a new text event that the createEvent method created.
initUIEventInitializes a new user interface event that the createEvent method created.
initWheelEventInitializes a new mouse wheel event that the createEvent method created.
InPrivateFilteringEnabled
Detects whether the user has enabled InPrivate Filtering.
inRangeReturns a value indicating whether one range is contained within another.
insertAdjacentElementInserts an element at the specified location.
insertAdjacentHTMLInserts the given HTML text into the element at the location.
insertAdjacentTextInserts the given text into the element at the specified location.
insertBeforeInserts an element into the document hierarchy as a child node of a parent object.
insertCellCreates a new cell in the table row (tr), and adds the cell to the cells collection.
insertDataInserts a new character string in the object at a specified offset.
insertNodeInserts a node into the start of a range object.
insertRowCreates a new row (tr) in the table, and adds the row to the rows collection.
insertRuleInserts a new rule into the media block.
insertRuleInserts a new rule into the style sheet.
isDefaultNamespaceIndicates whether or not a namespace is the default namespace for a document.
isEqualReturns a value indicating whether the specified range is equal to the current range.
isEqualNodeDetermines if two nodes are equal.
isPointInPathDetermines if the specified point is in the current path.
isSameNodeDetermines 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.
IsServiceInstalledCheck if a service is already installed.
IsSubscribed
Obsolete. Retrieves a value indicating whether the client subscribes to the given channel.
isSupportedReturns a value indicating whether or not the object supports a specific DOM standard.
itemRetrieves an attribute for an element from an attributes collection.
item
Retrieves an object from a bookmarks collection.
itemRetrieves an object from a controlRange collection.
itemRetrieves an object from a documentCompatibleInfoCollection collection.
itemRetrieves an object from a childNodes or StaticNodeList collection.
itemGets the medium at the position number that is indicated by an index in the current list.
itemGets a property that has been explicitly set in the current declaration block.
itemRetrieves a namespace object from the namespaces collection.
itemRetrieves an object from the pages collection.
itemRetrieves an object from the rules collection.
itemRetrieves an object from various collections, including the all collection.
itemRetrieves an object from a collection.
itemRetrieves an object from the filters collection.
itemRetrieves a form object or an object from an elements collection.
itemRetrieves a select object or an object from an options collection.
itemRetrieves an object from a TextRange collection.
itemRetrieves an object from a TextRectangle collection.
itemRetrieves an object from an areas collection.
itemRetrieves an object from the behaviorUrns collection.
ItemRetrieves a string that specifies the name of a block format tag.
javaEnabledReturns whether Java is enabled.
keyRetrieves the key at the specified index in the collection.
lastChildRetrieves a reference to the last child of the current node of the filtered TreeWalker hierarchy and updates currentNode.
lastPageDisplays the last page of records in the data set to which the table is bound.
lineToAdds a new point to a subpath and connects that point to the last point in the subpath by using a straight line.
loadResets the IHTMLMediaElement and loads a new media resource.
lookupNamespaceURIGets the Uniform Resource Identifier (URI) of the namespace associated with a namespace prefix, if any.
lookupPrefixGets the namespace prefix associated with a URI, if any.
matchMediumGets 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.
measureTextReturns a CanvasTextMetrics object that contains the width of the specified text.
mergeAttributesCopies all read/write attributes to the specified element.
moveCollapses 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.
moveEndChanges the end position of the range.
moveRowMoves a table row to a new position.
moveStartChanges the start position of the range.
moveToCreates 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.
moveToBookmarkMoves to a bookmark.
moveToElementTextMoves the text range so that the start and end positions of the range encompass the text in the given element.
moveToPointMoves 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.
msGetPropertyEnabledReturns 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.
msMatchesSelectorDetermines whether an object matches the specified selector.
msPutPropertyEnabledSets 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.
msWriteProfilerMarkWrites a profiling event.
namedItemRetrieves an object from an areas collection.
namedItemRetrieves an object or a collection from a specified collection.
namedItemRetrieves a form object or an object from an elements collection.
namedItemRetrieves a select object or an object from an options collection.
namedRecordsetRetrieves the recordset object corresponding to the named data member from a data source object (DSO).
navigateLoads 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.nextNodeReturns the next node in the NodeIterator or TreeWalker list and updates currentNode.
nextPageDisplays the next page of records in the data set to which the table is bound.
nextSiblingRetrieves the next sibling of the current node in the filtered TreeWalker hierarchy and updates currentNode.
normalizeMerges adjacent DOM objects to produce a normalized document object model.
openOpens 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.
openOpens a new window and loads the document specified by a given URL.
openCreates a connection with a domain's server.
openAssigns method, destination URL, and other optional attributes of a pending request.
parentElementRetrieves the parent element for the given text range.
parentNodeRetrieves the parent object in the document hierarchy relative to the current node and updates currentNode.
parseFromStringCreates an instance of a document that contains a DOM tree from a string of serialized XML source.
pasteHTMLPastes HTML text into the given text range, replacing any previous text and HTML elements in the range.
pausePauses the current playback and sets paused to true.
playLoads and starts playback of a media resource.
postMessageSends a cross-document message.
preventDefaultCancels the default action of an event.
previousNodeReturns the previous node in the NodeIterator or TreeWalker list and updates currentNode.
previousPageDisplays the previous page of records in the data set to which the table is bound.
previousSiblingRetrieves the previous sibling of the current node in the filtered TreeWalker hierarchy and updates currentNode.
printPrints the document associated with the window.
promptDisplays a dialog box that prompts the user with a message and an input field.
putImageDataPaints the data from a specified CanvasImageData object onto a canvas.
quadraticCurveToAdds a point to the current subpath by using the specified control points that represent a quadratic Bézier curve.
queryCommandEnabledReturns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
queryCommandIndetermReturns a Boolean value that indicates whether the specified command is in the indeterminate state.
queryCommandStateReturns a Boolean value that indicates the current state of the command.
queryCommandSupportedReturns a Boolean value that indicates whether the current command is supported on the current range.
queryCommandTextRetrieves the string associated with a command.
queryCommandValueReturns the current value of the document, range, or current selection for the given command.
querySelectorRetrieves the first DOM element node from descendants of the starting element node that match any selector within the supplied selector string.
querySelectorAllRetrieves all DOM element nodes from descendants of the starting element node that match any selector within the supplied selector strings.
raiseEventTriggers an event, as specified.
recalcRecalculates all dynamic properties in the current document.
rectCreates a new closed rectangular subpath.
refreshRefreshes the content of the collection.
refreshRefreshes 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.
releaseCaptureRemoves mouse capture from the object in the current document.
reloadReloads the current document.
removeRemoves an element from the collection.
removeAllRangesRemoves all ranges from a selection.
removeAttributeRemoves an attribute from an object.
removeAttributeNodeRemoves an attribute object from the object.
removeAttributeNSRemoves the specified attribute from the object.
removeBehaviorDetaches a behavior from the element.
removeChildRemoves a child node from the object.
removeEventListenerRemoves an event handler that the addEventListener method registered.
removeExpressionRemoves the expression from the specified property.
removeImportRemoves the imported style sheet from the imports collection based on ordinal position.
removeItemDeletes a key/value pair from the Web Storage collection.
removeNamedItemRemoves an attribute specified with the name property from an element by using the attributes collection.
removeNamedItemNSRemoves a named item that is specified by a namespace and local name.
removeNodeRemoves the object from the document hierarchy.
removePropertyRemoves a CSS property if it is explicitly set within the current declaration block.
removeRangeRemoves a range from a selection.
removeRuleDeletes an existing style rule for the styleSheet object, and adjusts the index of the rules collection accordingly.
replaceReplaces the current document by loading another document at the specified URL.
replaceAdjacentTextReplaces the text adjacent to the element.
replaceChildReplaces an existing child element with a new child element.
replaceDataReplaces a specified range of characters in the object with a new character string.
replaceNodeReplaces the object with another element.
replaceWholeTextReplaces the text of the current object.
resetSimulates a mouse click on a reset button for the calling form.
resizeByChanges the current size of the window by the specified x- and y-offset.
resizeToSets the size of the window to the specified width and height values.
restoreReturns previously saved CanvasRenderingContext2D path state and attributes.
rotateRotates the current context coordinates (that is, a transformation matrix).
saveSaves the state of the current context.
scaleScales the current context by the specified horizontal (x) and vertical (y) factors.
scrollCauses the window to scroll to the specified x- and y-offset at the upper-left corner of the window.
scrollByCauses the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
scrollIntoViewCauses the object to scroll into view, aligning it either at the top or bottom of the window.
scrollToScrolls the window to the specified x- and y-offset.
selectHighlights the input area of a form element.
selectMakes the selection equal to the current object.
selectAllChildrenReplaces the current selection with all the contents of the given node.
selectNodeSelects a range node and all of its contents.
selectNodeContentsSelects the contents within a node in a range.
sendTransmits a data string to the server for processing.
sendSends an HTTP request to the server and receives a response.
serializeToStringConverts nodes in a Document Object Model (DOM) tree to a string that contains an XML representation of the tree.
setActiveSets the object as active without setting focus to the object.
setAttributeSets the value of the specified attribute.
setAttributeNodeSets an attribute object node as part of the object.
setAttributeNodeNSSets an attribute object as part of the object.
setAttributeNSSets the value of the specified attribute within the specified namespace.
setCaptureSets the mouse capture to the object that belongs to the current document.
setContextMenuConstructs a context menu, as specified.
setDataAssigns data in a specified format to the dataTransfer object or the clipboardData object.
setEndSets the end point of the range.
setEndAfterSets the end of a range to a point after a specific node.
setEndBeforeSets the end of the range to a point before a specific node.
setEndPointSets the endpoint of one range based on the endpoint of another range.
setExpressionSets an expression for the specified object.
setIntervalEvaluates an expression each time a specified number of milliseconds has elapsed.
setItemSets a key/value pair.
setNamedItemAdds an attribute to an element by using an attributes collection.
setNamedItemNSAdds an attribute to an element by using its namespaceURI and localName properties.
setPropertySets a property value and priority within the current declaration block.
setRequestHeaderAdds custom HTTP headers to the request.
setSelectionRangeSets the start and end positions of a selection in a text field.
setStartSets the start point of a range.
setStartAfterSets the start point of the range to a point after a specific node.
setStartBeforeSets the start point of a range to a point before a specific node.
setTimeoutEvaluates an expression after a specified number of milliseconds has elapsed.
setTransformResets the current transformation matrix of the current context back to its default and then multiplies it by the specified matrix.
showDisplays a pop-up window on the screen.
ShowBrowserUIOpens the specified browser dialog box.
showHelpDisplays a Help file. This method can be used with Microsoft HTML Help.
showModalDialogCreates a modal dialog box that displays the specified HTML document.
showModelessDialogCreates a modeless dialog box that displays the specified HTML document.
splitTextDivides a text node at the specified index.
startGets the start of the time range by using the specified index.
startStarts scrolling the marquee.
stopStops the marquee from scrolling.
stopImmediatePropagationPrevents any further propagation of an event.
stopPropagationPrevents propagation of an event beyond the current target.
strokeRenders the strokes of the current subpath by using the current stroke styles.
strokeRectCreates an outline of the specified rectangle on a canvas by using the current stroke, line width, and join styles.
strokeTextRenders the specified text at the specified position by using the current font and strokeStyle property.
submitSubmits the form.
substringDataExtracts a range of characters from the object.
surroundContentsMoves the contents of a Range to a new parent node, placing the new parent node at the start position of the Range.
swapNodeExchanges the location of two objects in the document hierarchy.
tagsRetrieves a collection of objects that have the specified HTML tag name.
taintEnabledReturns whether data tainting is enabled.
toDataURLReturns 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).
toJSONReturns the calling object as a JavaScript Object Notation (JSON) object.
toStaticHTMLRemoves dynamic HTML elements and attributes from an HTML fragment.
transformModifies the transformation matrix of the current context.
translateSpecifies values to move the origin point in a canvas.
updateSettingsAllows updating the print settings for the page.
urnsRetrieves a collection of all objects to which a specified behavior is attached.
watchPositionBegins listening for updates to the current geographical location of the device running the client.
writeWrites one or more HTML expressions to a document in the specified window.
writelnWrites one or more HTML expressions, followed by a carriage return, to a document in the specified window.
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)