问题描述
<TD CLASS="tableRowSel" ALIGN="Left" > <OBJECT id='test' classid="clsid:CAFEEFAC-0014-0002-0005-ABCDEFFEDCBA" width="27" height="27" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2_05-windows-i586.cab#Version=1,4,2,50" onclick="this.disabled='true'"><param name="java_code" value="wt/clients/checker/CheckerApplet.class"><param name="java_archive" value="wt/security/security.jar"><param name="type" value="application/x-java-applet;version=1.4"><param name="annotationxml" value="com.ptc.windchill.application.ProductStructureAnnotator"><param name="annotationname" value="wt.annotation.StructuredAnnotationSet:151428370"><param name="cache_archive" value="wtClientChecker.jar, docmgrCust.jar, docmgrDSU.jar, docmgrFCS.jar, lib/HTTPClient.jar, docmgr3rdParty.jar, docmgr.jar, ptcAnnotatorFCS.jar, lib/borland.jar, lib/xercesImpl.jar, lib/xmlParserAPIs.jar, lib/sfc.jar, lib/magelang.jar, lib/JGL.jar, lib/ie.jar, lib/servlet.jar"><param name="java_codebase" value="http://pdssit.premierimage.com.tw/Windchill"><param name="verbose" value="true"><param name="codebase" value="/Windchill"><param name="annotationreadonly" value="false"><param name="boot_class" value="ext/premier/annotation/PremierAnnotationLauncher"><param name="cache_option" value="Plugin"></OBJECT></TD>当我点击那个object之后,似乎onclick事件没有调用到。我想要的结果是当点一次object之后那个object将不能再点击。也就是想解决重复点击object出现的问题。因为当点了多次之后就会出现多个相同的applet.还有个问题就是在关闭applet之后又要使object能再次被点击?貌似applet可以调用到页面的js请各位给点意见。谢谢!
解决方案
onclick="javascript:document.getElementById('test').disabled='true'"
解决方案二:
onclick="alert('test');this.disabled=true"