javascript TextRange execCommand( )

execCommand( ) NN n/a IE 4(Win) DOM n/a  
execCommand("commandName"[, UIFlag[, value]])

Executes the named command on the current TextRange object. Many commands work best when the TextRange object is an insertion point. See Appendix D for a list of commands.

 
Parameters
 
  • A case-insensitive string value of the command name. See Appendix D.
  • Optional Boolean value: true to display any user interface triggered by the command (if any); false to prevent such display.
  • A parameter value for the command.
 
Returned Value

Boolean value: true if command is successful; false if unsuccessful.


2104,Nickname,Homepage or email,Comments here,Add comment