
Command identifiers specify an action to take on the given object. Use them with the following methods:
Sets the background color of the current selection.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Wraps a <B> tag around the object.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Copies the object to the clipboard.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Wraps an <A Name=> tag around the object, or edits an existing tag.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Wraps an <A HREF...> tag around the current selection.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Copies the object to the clipboard and then deletes it.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Deletes the object.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Sets the typeface for the current selection.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Sets the font size of the current selection.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Sets the foreground (text) color of the current selection.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Wraps a block tag as specified around the current object.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Indents the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts a <BUTTON> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts a <FIELDSET> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts <HR> at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <IFRAME> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Button...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Checkbox...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = FileUpload...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Hidden...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Image...> tag at the current insertion point.
Applies To
execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
Inserts an <INPUT Type = Password...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Radio...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Reset...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Submit...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <INPUT Type = Text...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts a <MARQUEE> at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <OL> tag at the current insertion point.
The command creates an initial LI element if necessary.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts a <P> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <SELECT Type = Dropdown...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts an <SELECT Type = Listbox...> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts a <TEXTAREA> tag at the current insertion point.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Inserts a <UL> tag at the current insertion point.
The command creates an initial LI element if necessary.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Wraps an <I> tag around the object.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Centers the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Full justifies the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Left justifies the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Right justifies the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Outdents the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Sets the input-typing mode to overwrite or insert.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Pastes the contents of the clipboard at the current insertion point or over the current selection.
This command does not use the value parameter.
To prevent a breach of security, this command can only paste data that has been placed on the clipboard by script.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Starts playing any dynamic images within the object. A dynamic image is any image specified using the dynsrc property of the IMG element.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Reloads the source of the current document.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Removes formatting from the current selection.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Selects the entire text of the document.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Stops playing any dynamic images within the object.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
See also PlayImage
Removes tags from the given selection or text range.
If you have the following selection:
<a name=foo>testing</a>
document.execCommand("selectall");
document.execCommand("Unbookmark")
The command removes the A tag, leaving the string "testing".
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Wraps a <U> tag around the object.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Removes a link.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
Clears a selection from the document.
This command does not use the value parameter.
Applies To
execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.