JavaScript Reference/Javascript Properties/altHTML
"altHTML" Example
<!--
Example revised from
The Web Programmer"s Desk Reference
by Lazaro Issi Cohen and Joseph Issi Cohen
ISBN: 1593270119
Publisher: No Starch Press 2004
-->
<html>
<body>
<object id="myObject"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.ru/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="243"
height="194">
<param id="myP1"
name="movie"
value="yourflashmovie.swf"
valuetype="ref"
type="video/*">
<param id="myP2" value="high" name="quality">
<script language="JavaScript">
document.all.myObject.altHTML = "Alternative text";
</script>
</object>
</body>
</html>
"altHTML" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<applet> <object> |
+----------------+--------------------------------------------------------------+
"altHTML" Syntax and Note
Note:
Read and write property.
Provides HTML content if the element cannot load.
Syntax:
document.all.elementID.altHTML = value