html调用OCX

<body>
<p>hello</p>
<p></p>
<object 
class

align="bottom"  height="500" width="1000">

</object>
</body>

调用ocx里的方法

<script type="text/javascript">
    var idc;
    window.onload = function() {
        idc = document.getElementById("iett");
    }
 
    function fun1() {
        idc.Clear();
         
    }
    function fun2(){
    idc.getinfo();
        document.getElementById("idname").innerHTML = idc.IDName;
        document.getElementById("idsex").innerHTML = idc.IDSex;
        document.getElementById("idBirthday").innerHTML = idc.IDBirthDay;
        document.getElementById("idIDNo").innerHTML = idc.IDCardNo;
        document.getElementById("idAddress").innerHTML = idc.IDAddress;
        document.getElementById("idNation").innerHTML = idc.IDNation;
        document.getElementById("idTime").innerHTML = adate.toLocaleTimeString();
    }
 </script>