JavaScript Reference/Javascript Properties/code
"code" 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>
<script language="javascript">
document.getElementById("myA").code = "aipwave.class";
</script>
<applet id="myA" code="yourprogram.class" width="350" height="260">
<param name=regcode value="99999999">
<param name=loading value="1">
<param name=image value="yourimage.jpg">
<param name=border value="0">
<param name=delay value="50">
<param name=url value="none">
<param name=maxscalex value="2.5">
<param name=frames value="10">
</applet>
</body>
</html>
"code" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<applet> <object> |
+----------------+--------------------------------------------------------------+
"code" Syntax and Note
Note:
Read and write property.
Returns the URL of the Java class file.
Syntax:
document.getElementById("elementID").code = value
document.all.elementID.code = value // IE only