TextRange.getBookmark() (Method)

Bookmarks a position in a text range.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:TextRange bookmark
JavaScript syntax:IEmyTextRange.getBookmmark()

These are not user bookmarks that are stored in the favorites menu but are special bookmarks for remembering access points in TextRange objects.

This method generates a special value that can be stored in a variable and can later be passed to the moveToBookmark() method to restore the start and end points of the TextRange to the current values. It's a simple way to store and restore the settings of a TextRange.

See also:TextRange.moveToBookmark()