Title: javascript:void(0) Error in HTML Output
Last modified: September 1, 2016

---

# javascript:void(0) Error in HTML Output

 *  [emeraldwave](https://wordpress.org/support/users/emeraldwave/)
 * (@emeraldwave)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascriptvoid0-error-in-html-output/)
 * Hi,
    Instead of showing the click event from Google Analytics in my HTML code,
   it shows an error instead like this:
 * `href="javascript:void(0)"`
 * I tried with and without No Conflict.
    I tried with plugins all disabled. I tried
   on default theme. I tried with these 2 code variations:
 * `onClick="ga('send', 'event', 'Booking', 'Book', 'Book Online Button', 'value');"`
 * `ga('send', 'event', 'Booking', 'Book', 'Book Online Button', 'value');`
 * Still the Javascript Void shows instead of above code.
 * Please advise.
 * [https://wordpress.org/plugins/jin-menu/](https://wordpress.org/plugins/jin-menu/)

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

 *  Thread Starter [emeraldwave](https://wordpress.org/support/users/emeraldwave/)
 * (@emeraldwave)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascriptvoid0-error-in-html-output/#post-7532707)
 * Here is a copy of how my full link appears with this error:
 * `<a title="Book Online" target="_blank" href="javascript:void(0)"><strong>Book
   Online</strong></a>`
 *  Plugin Author [Rohit Kumar](https://wordpress.org/support/users/aniketan/)
 * (@aniketan)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascriptvoid0-error-in-html-output/#post-7532714)
 * Hi emeraldwave
 * Link appear is correct jin menu add javascript:void(0) and bind the
    click event
   to your defined function
 * only thing missing in your link is jin menu class
    I guess some other plugin 
   or your theme using the same hook that jin menu using.
 * if you can provide the link i will check that

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

The topic ‘javascript:void(0) Error in HTML Output’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jin-menu.svg)
 * [JinMenu](https://wordpress.org/plugins/jin-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jin-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jin-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/jin-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jin-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jin-menu/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Rohit Kumar](https://wordpress.org/support/users/aniketan/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/javascriptvoid0-error-in-html-output/#post-7532714)
 * Status: not resolved