IHTMLImgElement interface
This interface provides access to some of the properties and methods supported by the img element and the input element of the image type. The other properties and methods are accessible through the IHTMLImgElement interface.
Members
The IHTMLImgElement interface inherits from the IDispatch interface. IHTMLImgElement also has these types of members:
- Properties
Properties
The IHTMLImgElement interface has these properties.
Property | Description |
---|---|
Sets or retrieves how the object is aligned with adjacent text. |
|
Sets or retrieves a text alternative to the graphic. |
|
Sets or retrieves the width of the border to draw around the object. |
|
Retrieves whether the object is fully loaded. |
|
This property is deprecated. Sets or retrieves the address of a video clip or VRML world to display in the window. |
|
Retrieves the date the file was created. |
|
Retrieves the date the file was last modified. |
|
Note IHTMLImgElement::fileSize is no longer supported. Starting with IE11, use XMLHttpRequest to get the resource. For info, see Compatibility changes.
Retrieves the file size. |
|
Retrieves the date the file was last updated. |
|
Sets or retrieves the height of the object. |
|
Sets or retrieves the horizontal margin for the object. |
|
Sets or retrieves whether the image is a server-side image map. |
|
Sets or retrieves the number of times a sound or video clip will loop when activated. |
|
Sets or retrieves a lower resolution image to display. |
|
Sets or retrieves the name of the object. |
|
Retrieves the file name specified in the IHTMLLinkElement4::href or IHTMLEmbedElement2::src property of the object. |
|
Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onload event. The HTMLFrameSiteEvents::onload event occurs immediately after the browser loads the object. |
|
Sets or retrieves the protocol portion of a URL. |
|
Retrieves a value that indicates the current state of the object. |
|
Sets or retrieves a URL to be loaded by the object. |
|
Sets or retrieves when a video clip file should begin playing. |
|
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. |
|
Sets or retrieves the IHTMLDocument2::URL of the VRML world to be displayed in the window. |
|
Sets or retrieves the vertical margin for the object. |
|
Sets or retrieves the calculated width of the object. |
Remarks
The img element embeds an image or a video clip in a document. It supports the HTMLFrameSiteEvents::onfocus event and can receive the input focus only if it has been associated with a map element.
This interface may also be referred to in code as IOmImage.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |