An object representing a bookmark.
// Insert a bookmark at the cursor position and log its ID. var doc = DocumentApp.getActiveDocument(); var cursor = doc.getCursor(); var bookmark = doc.addBookmark(cursor); Logger.log(bookmark.getId());
|Method||Return type||Brief description|
|Gets the ID of the
Gets the ID of the
Bookmark. The ID is unique within the document.
String — the
Bookmark's ID, which is unique within the document
Bookmark. Calling this method on a
Bookmark that has already been
deleted has no effect.