Forum Moderators: open

Message Too Old, No Replies

Pop Up Windows and Pop Up Ad blockers

         

albroun

2:55 pm on Feb 16, 2004 (gmt 0)

10+ Year Member



Hi

I like to use Javascript windows on my site for extra notes / information - NOT for ads. However, I have heard that lots of people use pop up ad blockers which could prevent these windows from being displayed, even though they are only launched by clicking on a link. Other users turn javascript off altogether. Is there any way round this?

Here is a sample of the code I currently use:

<a href="javascript:void window.open('links.htm', 'linx', 'toolbar=no,menubar=no, scrollbars=yes, resizable=yes, height=260, width=680')">View the List</a>

At present I have a footnote on my site:

"If you are using a pop-up ad blocker or have javascript turned off, you may have to re-enable pop-up windows or javascript to view certain pages on this site. There are no ads on this site (I promise!), although I cannot be responsible for ads on external sites to which I have provided links."

Thanks

Alasdair

korkus2000

3:15 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Most popup blockers will not stop user initiated popups. Most also do not have JS turned off. There are a few who do, normal users SEs always have it off. The only way to get around this is to use a link onclick kind of scenerio like:

<a href="example.com/help.htm" onclick="window.open('links.htm', 'linx', 'toolbar=no,menubar=no, scrollbars=yes, resizable=yes, height=260, width=680'); return false;">view help</a>

The return false cancels the href attribute, and users without js will go to the page in the main browser. The popup blockers will still block the popup though.

albroun

11:42 am on Feb 17, 2004 (gmt 0)

10+ Year Member



thanks

by the way what does this refer to?

"normal users SEs .... "

not sure what SEs means

korkus2000

12:27 pm on Feb 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry about that.

SE = Search Engines. Basically their spiders.