0
Best Collegue,如何阻止IE浏览器阻止弹出窗口的小册子与pinterest相同
我为IE创建了一个小书签,并且遇到了以下问题。当用户在bookmarklet工具栏中拖动我的书签并点击它时,如果用户想要允许弹出窗口,IE会显示一个对话框。但Pinterest可以避免这种情况,有人可以告诉我如何找到解决这个问题的方法吗?
我的extern js文件看起来像:
function Bookmarker(){
initialize();
}
function initialize(){
var url = document.location.href;
loadBookMarkLet(url);
}
function loadBookMarkLet(url) {
newwindow = window.open('http://bookmarker.symbaloo.com/?url='+encodeURIComponent(url),'Bookmarklet','toolbar=no,width=550,height=330,left=500,top=200, status=no,scrollbars=no,resize=no');
setTimeout(function() {
newwindow.focus();
}, 0);
}
new Bookmarker();
我的index.html文件看起来像:
<a href="javascript:(function(){script=document.createElement('SCRIPT');script.type='text/javascript';script.src='http://navidmirzaie.com/bookmarklet/default.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(script);})();" icon="bookmarker_icon.ico">Symbaloo Bookmarklet</a>
我会非常gratefull。
Tnx in advanced。
非常感谢你,我会试试:) – Navid