The first thing to explain is that it is not well supported under Firefox.
2D-POSITION allows objects that move absolute positioning by dragging movement.
AbsOluteposition sets the POSITION attribute of the element as "absolute" (absolutely).
BackColor sets or obtains the background color of the current selection area.
Blockdirltr has not yet supported.
Blockdirrtl has not yet supported.
BOLD switches the sore display or not in the current selected area.
Browsemode has not yet supported it.
Copy copys the current selected area to the clipboard.
Createbookmark creates a bookmark anchor or obtains the name of the bookmark anchor currently selected or inserted.
Createlink inserts the super link on the current selection area, or a dialog box allows users to specify URLs that need to be inserted for the current selected area.
CUT replicates the current selected area to the clipboard and delete it.
Delete deletes the current selected area.
Dirltr has not yet supported.
Dirrtl is currently not supported.
Editmode is currently not supported.
Fontname sets or obtains the fonts in the current selected area.
Fontsize sets or obtains the font size of the current selected area.
Forecolor sets or obtains the color (text) color of the current selected area.
FormatBlock sets the current block formatting tag.
Indine increases the indentation of the selection of Chinese.
InlineDirltr has not yet supported.
InlineDirrtl has not yet supported.
Insertbutton use the button control to cover the current selection area.
InsertfieldSet covers the current selection area with a box.
INSERTHORIZONTALULE uses horizontal lines to cover the current selection area.
Insertiframe covers the current selection area with the embedded framework.
INSERTIMAGE uses images to cover the current selection area.
InsertinputButton covers the current selection area with a button control.
Insertinputcheckbox covers the current selection area with the check box control.
InsertinputFileupload with files upload controls to cover the current selected area.
InsertinPuthidden inserts the hidden control over the current selection area.
InsertinputImage covers the current selection area with image control.
Insertinputpassword covers the current selection area with a password control.
Insertinputradio covers the current selection area with a single button control.
InsertinputRESET covers the current selection area with a reset control.
InsertinPutsubmit uses the submitting control control to cover the current selection area.
Insertinputtext covers the current selection area with a text control.
Insertmarquee covers the current selection area with empty subtitles.
InsertorderedList switches whether the current selection area is a list or conventional block.
Insertparagraph covers the current selection area with a change of banks.
Insertselectdropdown covers the current selection area with the drop -down box control.
InsertselectlistBox covers the current selection area with a list box control.
Inserttextarea uses a multi -line text input control to cover the current selection area.
InsertunoredList switches whether the current selection area is the project symbol list or conventional format.
Italic switches currently selected zone oblique display.
JustifyCenter puts the currently selected area in the formatting block.
JustifyFull is currently not supported.
JustifyLeft align the current format block of the current selected area.
Justifynone has not yet supported.
JustiFyric will align the current format block of the current selected area.
LiveResize forced the MSHTML editor to continue to update the appearance of the element in the process of zooming or moving, rather than just updated after the movement or scaling is completed.
Multipleselection allows users to select more elements at a time when they hold down the Shift or Ctrl key.
Open opens.
OutDent reduces the formatting block where the selected area is located.
OverWrite switch into the insertion and coverage of the text state.
Paste covers the current selected area with the content of the clipboard.
PlayImage has not yet supported.
Print opens the print dialog box so that users can print the current page.
Redo is redo.
Refresh refreshes the current document.
RemoveFormat deletes formatting tags from the current selection area.
RemoveParaformat has not yet supported.
Saveas saves the current web page as a file.
Selectall selects the entire document.
Sizetocontrol has not yet supported.
SizetocontrolHeight has not yet supported it.
Sizetocontrolwidth has not yet been supported.
Stop stops.
StopImage has not yet supported.
Strikethrough has not yet supported.
Subscript has not yet supported.
SuperScript is currently not supported.
UNBOOKMARK deletes all bookmarks from the current selection area.
Underline switches whether the currently selected area is displayed or not.
UNDO withdrawn.
Unlink deletes all super links from the current selection area.
UnSelect clears the selected state in the current selected area.
Example 1:
Isnan is the test whether it is a value type, and the limit input can only be values such as: 1981.121. There is a maximum of one decimal point
Copy code code as follows:
<input type = "text" name = "text" onkeyup = "if (isnan (value)) execcommand ('undo')" /> />
Example 2:
Copy code code as follows:
<input type = Button value = cutting onClick = document.execcommand ('cut')>
<input type = Button value = copy onClick = document.execcommand ('copy')>
<input type = Button value = paste onClick = document.execcommand ('paste')>
<input type = Button value = cancel onClick = document.execcommand ('undo')>>
<input type = Button value = redemption of onClick = document.execcommand ('redo') id = button2 name = Button2>
<input>
<input type = Button value = Delete onClight = DOCUMENT.EXECCOMMAND ('delete')>>
<input type = Button value = black body onClick = document.execcommand ('bold')>
<input type = Button value = oblique onClick = document.execcommand ('italic')>>
<input type = Button value = below onCLick = document.execcommand ('underline')>>
<input type = Button value = stop onClick = Document.execcommand ('STOP')>
<input type = Button value = save onClick = document.execcommand ('saveas')>>
<input type = Button value = separately stored as onClick = document.execcommand ('Saveas', FALSE, 'C: //test.htm')>>
<input type = Button value = font onCLICK = DOCUMENT.EXECCOMMAND ('Fontname', FALSE, Fn)>
<input type = Button value = font size onClick = Document.execcommand ('Fontsize', FALSE, FS)>
<input type = Button value = refresh onClick = document.execcommand ('refresh', false, 0)>