Forum Moderators: open
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
<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.