最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to create Unblockable Javascript Popup - Stack Overflow

programmeradmin4浏览0评论

Nowdays 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

Nowdays 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

Share Improve this question asked Nov 20, 2010 at 11:17 Future KingFuture King 3,8496 gold badges31 silver badges38 bronze badges 4
  • 5 Must ... not ... down-vote ... on principle. – user166390 Commented Nov 20, 2010 at 11:20
  • On a more serious note, it seems that sites can open pop-ups unrestricted (in FF3.6) from flash (but also just from HTML?) immediately after a user-initiated action such as a click. I'm not exactly sure how it's done. Other browsers may behave differently. – user166390 Commented Nov 20, 2010 at 11:22
  • I hate those. I'm not gonna tell you, I know how to, but I hate those with passion and it's better if you don't know. – Camilo Martin Commented Nov 20, 2010 at 11:26
  • Ptetty simple.. wenever u see such a site, look at the freakin source code ;) – Gogol Commented Nov 17, 2015 at 16:46
Add a ment  | 

5 Answers 5

Reset to default 4

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.'),'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)

  1. 暂无评论