www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
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.

AddDesktopComponent

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

addElement

Adds an element to the controlRange collection.

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.

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.

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.

applyElement

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

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

Attempts to connect to a Web server by passing the specified query through completion templates.

back

Loads a previous URL from the History list.

begin

Marks the beginning of a global storage transaction.

blur

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

bubbleEvent

Propagates an event up its containment hierarchy.

ChooseColorDlg

Opens the system color-selection dialog box.

clear

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

clear

Clears the contents of the selection.

clear

Not currently 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.

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.

click

Simulates a click by causing the onclick event to fire.

cloneNode

Copies a reference to the object from the document hierarchy.

close

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

close

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

collapse

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

commit

Writes pending changes to persistent storage.

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.

createAttribute

Creates an attribute object with a specified name.

createCaption

Creates an empty caption element in the table.

createComment

Creates a comment object with the specified data.

createControlRange

Creates a controlRange collection of nontext elements.

createDocumentFragment

Creates a new document.

createElement

Creates an instance of the element for the specified tag.

createEventObject

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

createPopup

Creates a popup window.

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.

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.

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.

deleteData

Removes a specified range of characters from the object.

deleteRow

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

deleteTFoot

Deletes the tFoot element and its contents from the table.

deleteTHead

Deletes the tHead element and its contents from the table.

detachEvent

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

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.

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.

execCommand

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

execScript

Executes the specified script in the provided language.

expand

Expands the range so that partial units are completely contained.

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.

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

Retrieves the value of the specified attribute.

getAttribute

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

getAttributeNode

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

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.

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.

getElementById

Returns a reference to the first object with the specified ID value.

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.

getExpression

Retrieves the expression for the given property.

getItem

Retrieves the current value associated with the DOM Storage key.

getNamedItem

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

getNamedItem

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

getResponseHeader

Returns the specified response header.

go

Loads a URL from the History list.

hasAttribute

Determines whether an attribute with the specified name exists.

hasChildNodes

Returns a value that indicates whether the object has children.

hasFeature

Returns a value that indicates whether the object implements a specific Document Object Model (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 Windows Internet Explorer favorites.

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.

insertRow

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

isCompatible

Returns a value that indicates whether the document is compatible with the specified mode.

isEqual

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

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.

item

Gets an attribute for an element from the attributes collection.

item

Gets an object from the bookmarks collection.

item

Gets an object from the controlRange collection.

item

Retrieves an object from the documentCompatibleInfoCollection collection.

item

Gets an object from the childNodes collection or the children collection.

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 the filters collection or various other collections.

item

Retrieves an object from the behaviorUrns collection.

item

Retrieves an object from the 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.

lastPage

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

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

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.

namedItem

Retrieves a storage area from the collection, by name.

namedItem

Retrieves an object or a collection from the specified collection.

namedItem

Retrieves an object or a collection from the specified 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.

nextPage

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

normalize

Merges adjacent TextNode 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.

pasteHTML

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

postMessage

Sends a cross-document message.

previousPage

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

print

Prints the document associated with the window.

prompt

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

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.

queryCommandValue

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

querySelector

Returns the first DOM element node of the document that matches one of the supplied selector strings.

querySelector

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

querySelectorAll

Returns all elements of the document that match any of the supplied selector strings.

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.

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 page.

remove

Removes an element from the collection.

removeAttribute

Removes the given attribute from the object.

removeAttribute

Removes the given attribute from the object.

removeAttributeNode

Removes an attribute object from the object.

removeBehavior

Detaches a behavior from the element.

removeChild

Removes a child node from the object.

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 DOM Storage collection.

removeNamedItem

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

removeNamedItem

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

removeNode

Removes the object from the document hierarchy.

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.

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.

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.

send

Transmits a data string to the server for processing.

send

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

setActive

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

setAttribute

Sets the value of the specified attribute.

setAttribute

Sets the value of the specified attribute.

setAttributeNode

Sets an attribute object node as part of the object.

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.

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.

setNamedItem

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

SetRecentlyClosedVisible

Not implemented.

setRequestHeader

Adds custom HTTP headers to the request.

setTimeout

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

show

Displays the 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

Starts scrolling the marquee.

stop

Stops the marquee from scrolling.

submit

Submits the form.

substringData

Extracts a range of characters from the object.

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.

urns

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

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.

Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG