开发者

How to create Unblockable Javascript Popup

Nowd开发者_高级运维ays browsers have popup blockers. But still I have seen some sites succeed to show popups. I also have to create a popup which can not be blocked by browser. Is it possible? if Yes then please tell me.

Thanks


Without questioning the ethics of this question, browsers generally allow popups that are triggered by direct user actions - easpecialy click. It's the best chance your popup will show.

Otherwise 'ublockable' popups are thankfully not possible.


you can create a popout with flash player. it bypasses browsers blocking criteria.


I also have to create a popup which can not be blocked by browser. Is it possible?

No, you can't do this for all browsers. Hopefully the reasons the better/newer browsers block this are quite obvious. If you need a popup, add instructions on how to enable popups for your site for the browser they're using, don't try to bypass the security mechanisms that are there for a reason.

The user should make the choice for your site to have behavior different from the rest of the internet, not you forcing it on them.


You cannot; are you sure these are popups and not say for instance jQuery lightboxes?


You can copy this code

<body onload="window.open('http://w3schools.com'),'popupwindow','width=520',;height=320'">
  1. First of all you page run time Chrome automatically block, body onload popup, Click to right top - > press always allow this popup,

  2. restart the page

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜