聘我网

新概念招聘3.0

有些广告火狐下弹出新浏览器是如何实现的?

vote up0vote downstar
<a ... target="_blank">..</a>

或者

window.open("")

都只能打开新tab,新窗口是怎么打开的?

 

2 个答复

vote up0vote downcheck

target="_blank"的行为是用户设置的。

If you set the target attribute to "_blank", the link will open in a new browser window or a new tab.

火狐下强制弹窗可用alwaysRaised=yes:

window.open("", "test", "alwaysRaised=yes")
链接
vote up0vote down

最好加上scrollbars=yes带上滚动条:

window.open("", "test", "alwaysRaised=yes,scrollbars=yes");
链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.