最直接的是用window.open,对IE9以下有效,Firefox无效function openwin2(strurl){window.open(strurl, "newwin", "height=650,width=778,scrollbars=10,resizable=yes");}进阶版,IE6会报错function open_new_window(full_link){window.open('javascript:window.name;', 'location.replace("'+full_link+'")<\/script>');}高级版,用基于HTML5标准rel=”noreferrer” 并配合noreferrer.js可以自动识别浏览器并选择最优方案分为prototype.js和jquery版external link注意将nofrerrer.js中的google地址改成百度的.http://www.baidu.com/link?url?q参考:http://zhongfox.github.io/blog/javascript/2013/08/16/remove-referer-using-js/https://github.com/knu/noreferrer
...
继续阅读
(81)