Undo Command
Undo the previous command.
Scripting Information
Command Undo User interface None. Set bUserInterface to false or omit. execCommand vValue Optional. Set to null or omit. Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue.
Remarks
This command applies to the document object. For example, the following button reverses the last action.
<button onclick="document.execCommand('Undo')">UNDO</button>
Minimum Availability
Internet Explorer 5.0 and later.