IMG.href (Property)

The URL where the image was loaded from. This is identical to the SRC="..." HTML tag attribute.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyIMG.href

Image tags can have their HREF defined by JavaScript code. To do this, you need to place a javascript: URL in the HREF and return a valid location on exit from the function or expression that is invoked.

See also:IMG.src