An element that displays an image, much like the HTML img
element. The src
attribute can be used to specify the URL of the image.
More information is available in the XUL tutorial.
Note: Prior to Gecko 8.0, images did not shrink down with the same ratio in both directions when specifying maximum sizes using maxheight
or maxwidth
. The new behavior aligns more with the HTML <img>
element and shrinks both the width and height down proportionally.
<image src='Firefoxlogo.png' width='135' height='130'/>
image.onload
image
element when the image has finished loading. This applies whether the image is applied via the src
attribute or the list-style-image
style property. If you change the image, the event will fire again when the new image loads. This event will not bubble up the element tree.src
validate
always
never
accessibleType
Inherited Properties |
alert-icon
image
elements or other elements which can have an image.error-icon
message-icon
question-icon
See also the image
and icon
attributes.