July 1998
Intermediate to advanced
1456 pages
65h 5m
English
getBookmark( ), moveToBookmark( ) — NN n/a IE 4 DOM n/a
getBookmark( )
moveToBookmark(bookmarkString)
These two methods work together as a way to temporarily save a text
range specification and restore it when needed. The
getBookmark( ) method returns an opaque string
(containing binary data that is of no value to human users). Once
that value is stored in a variable, the range can be modified as
needed for the script. Some time later, the bookmarked text range can
be restored with the moveToBookmark( ) method:
var rangeMark = myRange.getBookmark( ) ... myRange.moveToBookmark(rangeMark)
Boolean value: true if the operation is
successful; false if unsuccessful.
bookmarkString
An opaque string returned by the getBookmark( )
method.
Read now
Unlock full access