Click to return to the DHTML, HTML     
Copy Command | IDM_COPY C...     CreateLink Command | IDM_...     Command Identifiers    
Web Workshop  |  DHTML, HTML & CSS

CreateBookmark Command | IDM_BOOKMARK Command ID


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



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.