asp.net.ph

Skip Navigation Links

execCommand Method

DHTML Methods


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

document, controlRange, TextRange

See Also

queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note