绕过禁用window.open()方法,打开新窗口

var ta=document.createElement("a");
    document.body.appendChild(ta);
 ta.href="http://www.cnblogs.com";
 ta.target="_blank";
ta.click();
posted @ 2008-06-13 10:13  西游  阅读(567)  评论(0编辑  收藏  举报