Posted in Javascript onAugust 08, 2013
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>javascript模拟鼠标自动点击链接</title> <script type="text/javascript"> var mytime = 1000; function myclick() { window.location.reload(); } function autoclick(){ setTimeout("myclick()",mytime); } </script> </head> <body onload="autoclick()"> <a href="https://3water.com" id="auto" target="_blank">你也可以手动点击</a> <iframe width = "300" height = "300" src = "https://3water.com" id="targetFrame"></iframe> </body> </html>
利用autoclick初始化页面,再自动刷新iframe.
JS模拟自动点击的简单实例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@