Export (0) Print
Expand All

Commands S-Z (JavaScript)

Command identifiers S-Z for JavaScript.

SaveAs

Saves the current webpage to a file.

CommandSaveAs

 

Call execCommand with the following parameters.

bUserInterface

Optional. This command displays a dialogue box if nCmdExecOpt is set to MSOCMDEXECOPT_DODEFAULT, MSOCMDEXECOPT_PROMPTUSER, or null. It does not display a dialogue box if the argument is set to MSOCMDEXECOPT_DONTPROMPTUSER.This parameter is ignored. The Save HTML Document dialog box is always displayed.

vValue

Optional. Variant of type String that specifies the path and file name of the file to which to save the Web page. When the path contains more than one folder name, separate the folder names with two backward slashes (\\).

The Save HTML Document dialog cannot be suppressed when calling this method from script.

Windows Internet Explorer 7 and later. The file path portion of vValue parameter is ignored.

SelectAll

Selects the entire document.

CommandSelectAll

 

Call execCommand with the following parameters.

bUserInterface

Set to false.

vValue

Optional.

SizeToControl

Not supported.

CommandSizeToControl

 

SizeToControlHeight

Not supported.

CommandSizeToControlHeight

 

SizeToControlWidth

Not supported.

CommandSizeToControlWidth

 

Stop

Not supported.

CommandStop

 

StopImage

Not supported.

CommandStopImage

 

StrikeThrough

Not supported.

CommandStrikeThrough

 

Subscript

Not supported.

CommandSubscript

 

Superscript

Not supported.

CommandSuperscript

 

UnBookmark

Removes any bookmark from the current selection.

CommandUnBookmark

 

Call execCommand with the following parameters.

bUserInterface

Set to false.

vValue

Optional.

Underline

Toggles the current selection between underlined and not underlined.

CommandUnderline

 

Call execCommand with the following parameters.

bUserInterface

Set to false.

vValue

Optional.

Undo

Undo the previous command.

CommandUndo

 

Call execCommand with the following parameters.

bUserInterface

Set to false.

pvaIn

Optional.

This command applies to the document object. For example, the following button reverses the last action.


<button onclick="document.execCommand('Undo')">UNDO</button> 

Unlink

Removes any hyperlink from the current selection.

CommandUnlink

 

Call execCommand with the following parameters.

bUserInterface

Set to false.

vValue

Optional.

Unselect

Clears the current selection.

CommandUnselect

 

Call execCommand with the following parameters.

bUserInterface

Set to false.

vValue

Optional.

 

 

Show:
© 2014 Microsoft