Javascript Reference
Categories: OBJECT

javascript OBJECT altHtml

@March 15, 2008, 1:22 a.m.
altHtmlFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

Provides HTML content to be displayed if the object or applet fails to load. This can be a message, static image, or any other HTML that best fits the scenario. There are inconsistencies in Internet Explorer with regard to this property name's case. The Win32 version requires altHtml; the Mac version requires altHTML.

 
Example
 
document.getElementById("myObject").altHtml = "<img src='objectAlt.gif'>";
 
Value

Any quoted string of characters, including HTML tags.

 
Default

None.


Powered by Linode.