Share via


images Property

Returns an IHTMLElementCollection object that represents all the IMG elements in the specified document.

expression.images

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example changes the src attribute of the first image in the active document. This example assumes that there is at least one image in the active document.

Dim objImage As FPHTMLImg

Set objImage = ActiveDocument.images.Item(0)
objImage.src = "graphics/chelan.jpg"

Applies to | FPHTMLDocument Object | IHTMLDocument2 Object