logicweb — 2013-06-07T17:46:48-04:00 — #1
I am using the below script to popup a coupon window automatically. However, Chrome and other browsers are blocking the popup, as expcected. Is there a way to avoid this from being blocked by the pop-up blocker? Also, how do I center it?
Thanks in advance
chris_upjohn — 2013-06-08T06:00:21-04:00 — #2
There is no way to change the default behaviour of browser popups unless you create a plugin for each browser that overrides the default handlers but that would be more work and time consuming. To center the window see the following link.
pullo — 2013-06-08T07:44:13-04:00 — #3
As popups are more or less blocked by default, what a lot of sites do today is to use a Lightbox effect, whereby you add a darker overlay to your user's screen and centre a smaller window in the middle of that.
I could show you how to do that if you want, although you might want to consider the usability implications of this method.