<!--运行页面自动点击--> <script> // 三秒后模拟点击 setTimeout(function() { // IE浏览器 if(document.all) { document.getElementById("tab5").click(); } // 其它浏览器 else { var e = document.createEvent("MouseEvents"); e.initEvent("click", true, true); document.getElementById("tab5").dispatchEvent(e); } }, 1000);//时间 </script>
页面运行自动点击事件,绝大不部分都有效
猜你喜欢
转载自www.cnblogs.com/maoye520/p/12915644.html
今日推荐
周排行