<a href="javascript:var wechat_left = (screen.width/2)-(200/2);var wechat_top = (screen.height/2)-(210/2);var wechat = window.open ('http://example.html','wechat','left='+wechat_left+',top='+wechat_top+',directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=no,resizable=no,width=200,height=210');" target="_blank">foo</a>
我有一个窗口弹出窗口,但在IE
它将在新窗口中启动。
遗憾的是,由于CMS restriction
,我无法更改目标。有没有办法执行跨浏览器preventDefault inline
?