Using JavaScript in HomeSite 4.0, Part II: The ActiveDocument Object's Methods, Part II
Using JavaScript in HomeSite 4.0, Part II
The ActiveDocument Object's Methods, Part II
Indent() | None |
Indents the line where the insertion point (I Beam) is.
InsertTag(startTag, endTag, deleteSelectionFlag) ) | None |
Inserts a pair of tags at the current insertion point position, removing the current selection if deleteSelectionFlag
is true. The insertion point will be placed between the start and end tags. If deleteSelectionFlag
is false, the current selection will be surrounded by the new tag pair.
InsertText(newString, deleteSelectionFlag) ) | None |
Inserts a string the current insertion point position, removing the current selection if deleteSelectionFlag
is true. The insertion point will be placed between the start and end tags. If deleteSelectionFlag
is false, the new text will be inserted before the current selection, and no text will be selected at the outset.
Print(noSettingPromptFlag) | None |
Prints the active document. Prompts the user for print settings if noSettingPromptFlag
is false.
ReplaceAll(searchString, replaceString, matchCaseFlag) | None |
Replaces all occurrences of searchString
with replaceString
, matching case if matchCaseFlag
is true. Returns the number of successful replacements.
Redo() | None |
Performs a single redo operation.
Reload(promptToSaveFlag) | None |
Reloads the active document from disk, prompting the user to save changes if promptToSaveFlag is true.
Produced by Yehuda Shiran and Tomer Shiran
Created: September 27, 1999
Revised: September 27, 1999
URL: https://www.webreference.com/js/column49/activemet2.html