title: error when calling applet method with javascript
body: <p>i want to read network card identity of a machine using applet that only works on jre 1.6 &amp; above.
   even applet loaded sucessfully  on page loading , i was not able to call Applet methods with javascript.
   when i checked the applet functions by calling javascipt from button, it was working as expected.
   why i could not call applet function on load.</p>
  
  <p>i found one error on IE 
   " Object doesn't support this property or method"</p>
  
  <p>below code working fine with firefox but not working with IE6 &amp; 7</p>
  
  <hr>
  
  <pre><code> ** script  **
  
  function getMAC(){
  
        try{
          var a=null;
          var obj=null;
          a=document.getElementById('jsap').readMACaddress();
    alert('mac address:'+a);
        }catch(e){
    alert('error::'+e);
        }
  
  }
   ** /script **
  
    ** object type="application/x-java-applet"
    classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA" 
   width= "180" height= "180"  name="jsap" id="jsap" 
  
     **param name="archive" value="macaddr.jar" 
    **param name="code" value="com/mac/GeneralApplet" 
    **param name="mayscript" value="yes" 
    **param name="scriptable" value="true" 
   **/object 
  
  
   **input type="button" name="getmac" value="show" onclick="getMAC();" **
  
  
   **script **
  
   getMAC();
  
   **/script **
  </code></pre>
  
  <hr>
  
  <p>please help me</p>
  
  <p>Thanks
  Yohi</p>