Popup Blocker

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Popup Blocker

Post by anjanesh »

I have some popups which are NOT ads but related to the site like product information etc.
I want to know what methodology is used by blockers to block popups.
I've used window.location,document.open and showModalessDialog for popups. Do blockers check for these in the scripts ?
Many are coming with popup blockers like Y!, Google, Netscape, FireFox etc. I've to rethink how Im suppossed to write code now if people are going to use popup blockers
Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

most popup blockers will block all automatic popups, but they allow requested popups. So making your popup code work off a link, will get it to work on most of the blockers. Some will blanketly deny the popup to launch however.

It can be suggested that you may want to redesign to not use popups at all.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Yes. I know its better to not use popups in the first place but my client won't agree. I dont use popups for my personal sites. My client wants the popup to display the product info so that it won't divert the end user from the main page or search page full of products otherwise he may just close the browser instead and not continue. You may not understand this and may give various solutions for this but here in India the bandwith is real slow and traffic is real high. So Cos/business people having sites targeted for India normally make sure they try to have the page stay on for a long period of time. I know in us/europe you have real fast connections but the scenario is not the same in 3rd world countries.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

You could always say that popups take about 53% longer to load to to the javascript involved :twisted:

Seriously though, your best bet is to connect the popup to a link. If the popup is unrequested, then it's irrelevant what's in the window - it's an evil popup and blockers will block them!! A lot of sites that do tie their popups to links, put a message in or near the link saying that it will open in a new window. Most people respond favourably to that.

What your client is asking for IS a popup, regardless of the content. If he disagrees, send him here and we'll argue with him ;)
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Basically, tell him if he wants a pop up, he runs the risk of it getting blocked. But if it's ok to have the user click it, then it'll sort most the pop up blockers.

And if it's something like "Dont forget to sign up!" or types of reminders, etc, you can always use alert() if worst comes to worst..
Post Reply