Overwrites an image on the current selection.
Scripting Information
Command InsertImage execCommand vValue Optional. String that specifies the path and name of the image file to be inserted. Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
C++ Information
Command group CGID_MSHTML Symbolic constant IDM_IMAGE User interface Yes IOleCommandTarget::Exec parameters
pvaIn Optional. VT_BSTR that specifies the path and file name of the image to be inserted. If the default UI is toggled on, this parameter is ignored. pvaOut Not applicable. Header file Mshtmcid.h Applies to IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus
Remarks
If no path is provided for the image file, the path will default to the location of the current document.
Minimum Availability
Internet Explorer 5 and later