<div class="codetitle"> <span><a style="CURSOR: pointer" data="73821" class="copybut" id="copybut73821" onclick="doCopy('code73821')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code73821"> <br>function clickButton {<br> document.getElementById(id).click();<br> var evt = document.createEvent("MouseEvents");<br> true, true);<br> document.getElementById(id).dispatchEvent(evt);</div>