<div class="codetitle"> <span><a style="CURSOR: pointer" data="54394" class="copybut" id="copybut54394" onclick="doCopy('code54394')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code54394"> <br>var asubmit = document.getElementById("submit"); <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="46108" class="copybut" id="copybut46108" onclick="doCopy('code46108')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code46108"> <br><span style="white-space:pre"> </span>asubmit.setAttribute("onclick","alert('请检查手机号码');"); //在火狐中有效,而在ie中无效 <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="24081" class="copybut" id="copybut24081" onclick="doCopy('code24081')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code24081"> <br><span style="white-space:pre"> asubmit.setAttribute("onclick","javascript:document.buyform.submit();");</span> //在ie中有效,火狐也有效 <br> </div>