You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > MozForceBrokenImageIcon

MozForceBrokenImageIcon style property

Browser support:
Specifies or retrieves whether the browser should display the "image failed to load" image instead of a real height.
You can use it in the userChrome.css file too.


You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: -moz-force-broken-image-icon

Possible values:

The type of this property is string.
 One of the following values: 
"image failed to load" image is not shown.
"image failed to load" image is shown.
Default: 1.

Example HTML code 1:

This example illustrates the use of the -moz-force-broken-image-icon property:
        <td>-moz-force-broken-image-icon : 0</td>
        <td>-moz-force-broken-image-icon : 1</td>
            <img src="anInvalid.png" style="width:200px; height:200px; -moz-force-broken-image-icon:0;">
            <img src="anInvalid.png" style="width:200px; height:200px; -moz-force-broken-image-icon:1;">
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content