What is execCommand() in javaScript

 

JavaScript DOM execCommand() Method

The DOM execCommand() Method in HTML DOM is used to execute a command 

specified by the user on the editable selected section.


syntax

      document.execCommand(command);

 

List of exe command in javascript

“copy”

“paste”

“bold”

“cut”

“createLink”

“backColor”

“defaultParagraphSeparator”    

“delete”

“fontSize”

“foreColor”

“formatBlock”

“forwardDelete”

“hiliteColor”

“ident”

“insertHTML”

“insertHorizantalRule”

“insertImage”

“insertLineBreak”

“insertOrderedList”

“justifyCenter”

“justiyFull”

“justifyLeft”

“justifyRight”

“outdent”

“paste”

“redo”

“selectAll”

“strikethrough”

“styleWithCss”

“subscript”

“superscript”

“undo”

“unlink”

“useCss”

Comments

Blogs