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.

Syntax:

object.MozForceBrokenImageIcon;
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: 
0
"image failed to load" image is not shown.
1
"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:
<table>
    <tr>
        <td>-moz-force-broken-image-icon : 0</td>
        <td>-moz-force-broken-image-icon : 1</td>
    </tr>
    <tr>
        <td>
            <img src="anInvalid.png" style="width:200px; height:200px; -moz-force-broken-image-icon:0;">
        </td>
        <td>
            <img src="anInvalid.png" style="width:200px; height:200px; -moz-force-broken-image-icon:1;">
        </td>
    </tr>
</table>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content