Title: WordPress and Javascript onClick Issue
Last modified: August 19, 2016

---

# WordPress and Javascript onClick Issue

 *  [jeric2k5](https://wordpress.org/support/users/jeric2k5/)
 * (@jeric2k5)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-and-javascript-onclick-issue/)
 * Hey guys just a quick question,
 * I was wondering if WordPress uses any onClick calls or any other javascript that
   would interfere with my onClick function? It seems that it works from time to
   time.
 * Here’s the javascript that I’m trying to call
 *     ```
       <script type="text/javascript">
       function aclick(anchor_id) {
       	document.getElementById(anchor_id).onclick();
       }	</script>
       ```
   
 * I’m trying to use make this flash allow the user to click on a image and so a
   lightbox function to display the full sized picture. But its not allowing me 
   to do it. I already have it running on my server at this [LINK](http://www.ericmendes.com/saec/wp-content/themes/saec/lightbox/index.html),
   but when I have the function set up in one of my themes for WordPress (Click 
   [HERE](http://www.ericmendes.com/saec/index.php) to see the malfunctioning page),
   it doesn’t allow me to click on them. (Although it seems to work from time to
   time, which makes me think some javascripts are interfering with one another)
 * Any help would be great!
    Thanks!

Viewing 1 replies (of 1 total)

 *  [Dave333](https://wordpress.org/support/users/dave333/)
 * (@dave333)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wordpress-and-javascript-onclick-issue/#post-831687)
 * I have a similar problem. Did you get it resolved? I had a look at the site you
   linked to be I can’t see any problems there.

Viewing 1 replies (of 1 total)

The topic ‘WordPress and Javascript onClick Issue’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Dave333](https://wordpress.org/support/users/dave333/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/wordpress-and-javascript-onclick-issue/#post-831687)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
