var _taction = 'http://www.zeroplace.cn/'; var _FORM = document.createElement('form'); document.body.appendChild(_FORM); _FORM.action = _taction; _FORM.method = 'get'; _FORM.target = '_blank'; _FORM.submit();
原理就是把要弹出的地址作为一个form的action,一般浏览器不会拦截。但是如果地址有有参数的话,这种方法可能就不行了。
如果地址有参数的话,可以采用form的隐藏域的形式,
<input type='hide' name='name' value='123' />
Powered By ZEROPLACE.CN CopyRight 2008, 汤姆大叔的博客 浙ICP备09078797号-1