Title: Can&#039;t find source of javascript error
Last modified: August 31, 2016

---

# Can't find source of javascript error

 *  Resolved [okcomputersolution](https://wordpress.org/support/users/okcomputersolution/)
 * (@okcomputersolution)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/)
 * Greetings! I am trying to find out the source of the following error on [this website](http://www.lewisvilleairconditioning.com).
 * The piece of code we are looking at (I am using Firebug) is first found in the#
   coupons section. It is the piece of code that attaches the third coupon, dubbed
   Rightcoupon. Clicking on the image opens up the coupon. Here is the code:
    `<
   a href="http://lewisvilleairconditioning.com/coupons/Rightcoupon.jpg" onclick
   ="window.open(this.href, '', 'resizable=no,status=no,location=no,toolbar=no,menubar
   =no,fullscreen=no,scrollbars=no,dependent=no,width=620,height=400'); return false;"
   >` **Here is the issue:** The problem is that this code also attaches itself 
   to every other div following it– from the end of #coupons, to #main, #content-
   wrapper, #content, #post-5, .entry, and on down through the headings.
 * I have a basic understanding of code, and it looks like the aforementioned code
   is being attached due to a javascript error.
 * This is a custom template, and for whatever reason, the company has no relationship
   with them anymore. I have combed through all the files I can think of– header,
   page, footer and so forth.
 * How do I troubleshoot this issue? I have never seen anything like this before.
 * Thanks –Blake

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/#post-7283842)
 * Is everything (theme and plugins) up to date?
 *  Thread Starter [okcomputersolution](https://wordpress.org/support/users/okcomputersolution/)
 * (@okcomputersolution)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/#post-7283845)
 * Yes. That was the first thing I did.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/#post-7283846)
 * ah… the last one is missing closing a tag
 *     ```
       <a onclick="window.open(this.href, '', 'resizable=no,status=no,location=no,toolbar=no,menubar=no,fullscreen=no,scrollbars=no,dependent=no,width=620,height=400'); return false;" href="http://lewisvilleairconditioning.com/coupons/Rightcoupon.jpg">
       			<img src="http://lewisvilleairconditioning.com/coupons/Rightcoupon.jpg" alt="Instant rebate on Trane qualifying systems for 60 months" width="312" height="186" />
   
       </div><!-- end coupons -->
       ```
   
 *  Thread Starter [okcomputersolution](https://wordpress.org/support/users/okcomputersolution/)
 * (@okcomputersolution)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/#post-7283848)
 * I don’t see what you mean. Is that code you posted the correct version?
 *  And thank you!
 *  Thread Starter [okcomputersolution](https://wordpress.org/support/users/okcomputersolution/)
 * (@okcomputersolution)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/#post-7283849)
 * Got it! You’re the best!

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

The topic ‘Can't find source of javascript error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [okcomputersolution](https://wordpress.org/support/users/okcomputersolution/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/cant-find-source-of-javascript-error/#post-7283849)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
