Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Executes a command over the given selection or text range.
Syntax
bSuccess = object.execCommand(sCommand [,bUserInterface] [,vValue])
Parameters
sCommand Required. Command to execute. This can be any valid command identifier. bUserInterface Optional. Value that indicates whether to display a user interface if the command supports one. This can be TRUE or FALSE. The default is FALSE. vValue Optional. String, number, or other value to assign. Possible values depend on sCommand.
Return Value
Boolean. Returns TRUE if the command is successful, or FALSE otherwise.
Remarks
Wait to invoke the execCommand method until after the page has loaded.
Applies To
See Also
queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.