Retrieves the name of a bookmark anchor or creates a bookmark anchor for the current selection or insertion point.
Scripting Information
Command CreateBookmark execCommand vValue Required. String that specifies a valid anchor name. Providing an empty string will create the tag but will leave the anchor name blank. Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
C++ Information
Command group CGID_MSHTML Symbolic constant IDM_BOOKMARK User interface Yes IOleCommandTarget::Exec parameters
pvaIn Required. VT_BSTR that specifies a valid anchor name. Providing an empty string will create the tag but will leave the anchor name blank. pvaOut VT_BSTR representing the anchor name of the bookmark. Header file Mshtmcid.h Applies to IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus
Minimum Availability
Internet Explorer 4.0 and later