src property
Sets or retrieves a URL to be loaded by the object.
Syntax
HRESULT value = object.put_src( v);HRESULT value = object.get_src(* p);
Property values
Type: BSTR
The URL.
Remarks
The value of the IHTMLEmbedElement2::src attribute of the img and input type=image elements depends on the context of the reference to the attribute. When read as a Document Object Model (DOM) attribute, IHTMLEmbedElement2::src returns a URL relative to the hosting domain. The value specified by the page author is returned when IHTMLEmbedElement2::src is read as a content attribute, when the page is displayed in an earlier document compatibility mode.
Windows Internet Explorer 8 or later. In IE8 Standards mode, the value of the IHTMLEmbedElement2::src attribute of the img and input type=image elements depends on the context of the reference to the attribute. When read as a DOM attribute, IHTMLEmbedElement2::src returns a URL relative to the domain hosting the Web page. The value specified by the page author is returned when IHTMLEmbedElement2::src is read as a content attribute, when the page is displayed in an earlier document compatibility mode, or when the page is viewed with an earlier version of the browser. For more information, see Attribute Differences in Internet Explorer 8.