87,921
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<object id="myocxObj" width=500 height=500 style="display: inline;" classid="CLSID:XXXXXXXXXXXXXXXXXXX" codebase="~/OCX/MyTestCom.cer#version=1,0,0,0"></object>
<p>
<input id="Button1" type="button" value="测试" onclick="myclick()" />
</p>
<script type="text/javascript">
var ocxObj = document.getElementById("myocxObj");
function myclick() {
alert(ocxObj.init());
}
</script>
</body>
</html>