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
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.
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.
This topic is now closed. New replies are no longer allowed.