homepage Welcome to WebmasterWorld Guest from 54.161.191.254
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
alternative link if javascript off or popup killer active
flashmastermak




msg:1492683
 2:38 am on Jan 30, 2003 (gmt 0)

I use a JavaScript to launch a frameless popup window to display a flash movie, however with Earthlink's popup killer and other anti-popup software becoming increasingly common, I'm concerned I might lose traffic if a new window doesn't open.

Is there away of linking that offers the popup first but in the event that java is switched off or a popup killer is active, the link will open in the current frame?

 

tedster




msg:1492684
 3:35 am on Jan 30, 2003 (gmt 0)

here's what I use --

<a href="link.html" onclick=popup();return false;">link text</a>

The "return false;" section of the javascript keeps the link from loading in the original window as well as in the pop-up when javascript is available.

Unfortunately there are a few heavy handed pop-up killers out there where the whole link gets killed, even the "straight" HTML part. There's no hope for those. However, this script gets the results you want with most pop-up killer utilties.

flashmastermak




msg:1492685
 12:49 pm on Jan 30, 2003 (gmt 0)

Thanks Tedster, I'll give that a try

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved