firefox浏览器下,如何做到自动点击链接
var tevt = document.createEvent("MouseEvents");
tevt.initEvent("click", false,true);
document.getElementById("ATarget").dispatchEvent(tevt);
<a id="ATarget" href="http://www.sina.com.cn" target="_blank"></a>
我这样试过,是不行的,弹不出页面来,firefox浏览器下