<script type="text javascript" for="ocxName" <a="" href="https://www.baidu.com/s?wd=EVENT&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBrH9bPWuWuAcLuWT4nyn10ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1f3rj0krHTzP1ckPW0kn1cdn6" target="_blank" class="baidu-highlight">EVENT="On<a href="https://www.baidu.com/s?wd=EVENT&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBrH9bPWuWuAcLuWT4nyn10ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1f3rj0krHTzP1ckPW0kn1cdn6" target="_blank" class="baidu-highlight">Event</a>(params)" ></script type="text>
// 处理 params
其中ocxName是object标签名.
在OCX中定义事件OnEvent,然后在js中加入
<SCRIPT type="text/javascript" FOR="ocxName" EVENT="OnEvent(params)" >// 处理 params
</SCRIPT>
其中ocxName是你object标签名