Compartilhar via


Commands S-Z (JavaScript)

Command identifiers S-Z for JavaScript.

  • SaveAs
  • SelectAll
  • SizeToControl
  • SizeToControlHeight
  • SizeToControlWidth
  • Stop
  • StopImage
  • StrikeThrough
  • Subscript
  • Superscript
  • UnBookmark
  • Underline
  • Undo
  • Unlink
  • Unselect

SaveAs

Saves the current webpage to a file.

Command SaveAs

 

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.

Command SelectAll

 

Call execCommand with the following parameters.

  • bUserInterface
    Set to false.

  • vValue
    Optional.

SizeToControl

Not supported.

Command SizeToControl

 

SizeToControlHeight

Not supported.

Command SizeToControlHeight

 

SizeToControlWidth

Not supported.

Command SizeToControlWidth

 

Stop

Not supported.

Command Stop

 

StopImage

Not supported.

Command StopImage

 

StrikeThrough

Not supported.

Command StrikeThrough

 

Subscript

Not supported.

Command Subscript

 

Superscript

Not supported.

Command Superscript

 

UnBookmark

Removes any bookmark from the current selection.

Command UnBookmark

 

Call execCommand with the following parameters.

  • bUserInterface
    Set to false.

  • vValue
    Optional.

Underline

Toggles the current selection between underlined and not underlined.

Command Underline

 

Call execCommand with the following parameters.

  • bUserInterface
    Set to false.

  • vValue
    Optional.

Undo

Undo the previous command.

Command Undo

 

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> 

Removes any hyperlink from the current selection.

Command Unlink

 

Call execCommand with the following parameters.

  • bUserInterface
    Set to false.

  • vValue
    Optional.

Unselect

Clears the current selection.

Command Unselect

 

Call execCommand with the following parameters.

  • bUserInterface
    Set to false.

  • vValue
    Optional.