Click to return to the DHTML, HTML     
CreateBookmark Command | ...     Cut Command | IDM_CUT Com...     Command Identifiers    
Web Workshop  |  DHTML, HTML & CSS

CreateLink Command | IDM_HYPERLINK Command ID


Inserts a hyperlink on the current selection.

Scripting Information

Command CreateLink
execCommand vValue Required. String that specifies a URL. Providing an empty string will leave the URL blank.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,

C++ Information

Command group CGID_MSHTML
Symbolic constant IDM_HYPERLINK
User interface Yes.
IOleCommandTarget::Exec parameters
pvaIn Required. VT_BSTR specifying a URL. Providing an empty string will leave the URL blank.
pvaOut Not Applicable.
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.