Title: Problem with javascript generated link on Firefox.
Last modified: August 18, 2016

---

# Problem with javascript generated link on Firefox.

 *  [greree](https://wordpress.org/support/users/greree/)
 * (@greree)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/problem-with-javascript-generated-link-on-firefox/)
 * I installed a copy of WordPress at [http://www.woggie.com](http://www.woggie.com).
   I installed a copy of a script called phpAdsNew on another domain. phpAdsNew 
   basically serves ads and keeps track of them. I generated the invocation code
   for a text ad and placed it at the top of index.php in my theme’s folder. This
   is the code:
 * `<script language='JavaScript' type='text/javascript' src='http://www.blazonsolutions.
   info/ads/adx.js'></script>
    <script language='JavaScript' type='text/javascript'
   > <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random =
   new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
 *  document.write ("<" + "script language='JavaScript' type='text/javascript' src
   ='");
    document.write ("[http://www.blazonsolutions.info/ads/adjs.php?n=&quot](http://www.blazonsolutions.info/ads/adjs.php?n=&quot);
   + phpAds_random); document.write ("&amp;what=zone:2&amp;target=_blank"); document.
   write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.
   write ("&amp;referer=" + escape(document.referrer)); document.write ("'><" + "/
   script>"); //--> </script><noscript><a href='[http://www.blazonsolutions.info/ads/adclick.php?n=a25f25ef&#039](http://www.blazonsolutions.info/ads/adclick.php?n=a25f25ef&#039);
   target='_blank'><img src='[http://www.blazonsolutions.info/ads/adview.php?what=zone:2&amp;n=a25f25ef&#039](http://www.blazonsolutions.info/ads/adview.php?what=zone:2&amp;n=a25f25ef&#039);
   border='0' alt=''></a></noscript>
 * The text ad is visible between the header image and the top post, and the link
   looks like a hyperlink. I put my mouse pointer over the link and I get `javascript:
   CJ311502X678.submit();` . Clinking on the link is supposed to launch a new window
   and connect to the sponsors website.
 * When I click on the link in Firefox nothing happens. When I place the invocation
   code in any WordPress file and then click on the resulting link in Firefox nothing
   happens.
 * When I make a test page called [http://www.woggie.com/testing.php](http://www.woggie.com/testing.php),
   and put the invocation code on it, it works perfectly. When I bring up [http://www.woggie.com](http://www.woggie.com)
   in Internet Explorer, it works perfectly. It only DOESN’T work when the invocation
   code is on a WordPress page and I’m using Firefox.
 * So, anyone have any idea why it isn’t working? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [rehzone](https://wordpress.org/support/users/rehzone/)
 * (@rehzone)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/problem-with-javascript-generated-link-on-firefox/#post-425994)
 * You may want to contact your sponsor to make sure their javascript is compatible
   with FF. I don’t think it’s a WP issue.
    They should be able to tell you if there’s
   anything in their adx.js file that may be incompatible with FF. At least you 
   could rule that out. I’m assuming you got the code from your sponsor. So they
   should also have a version that works with FFx.
 *  Thread Starter [greree](https://wordpress.org/support/users/greree/)
 * (@greree)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/problem-with-javascript-generated-link-on-firefox/#post-426003)
 * rehzone,
 * It works fine on a page I created called testing.php, placed in the same directory
   as the wordpress files. It’s only when the page is a wordpress page that it doesn’t
   work with FireFox.
 * I’m going to try pasting the invocation on a page from a brand new installation
   of wordpress.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with javascript generated link on Firefox.’ is closed to new 
replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [greree](https://wordpress.org/support/users/greree/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/problem-with-javascript-generated-link-on-firefox/#post-426003)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
