Title: Javascript in BUTTON HREF stopped to work
Last modified: April 4, 2017

---

# Javascript in BUTTON HREF stopped to work

 *  Resolved [xmmassage](https://wordpress.org/support/users/xmmassage/)
 * (@xmmassage)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/)
 * Hello again,
 * Not sure when it happened, but last version cut javascript from BUTTON urls.
 * [wc_button url=”javascript:jivo_api.showProactiveInvitation(”);”…
 *  empty href.
 * Thank you.

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

 *  Thread Starter [xmmassage](https://wordpress.org/support/users/xmmassage/)
 * (@xmmassage)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/#post-8992149)
 * Can you please fix this asap. We used it all around the website (… Thank you.
 *  Plugin Author [Chris Baldelomar](https://wordpress.org/support/users/cbaldelomar/)
 * (@cbaldelomar)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/#post-8997350)
 * It still works, but you can’t insert javascript code. I was contacted by WordPress.
   org of this security vulnerability, and they required me to sanitize user input
   like that. They cited the button URL as a specific example.
 *  Thread Starter [xmmassage](https://wordpress.org/support/users/xmmassage/)
 * (@xmmassage)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/#post-9000678)
 * Chris, thank you, Is there any workaround for this? Can I remove this “filter”
   using custom functions? Or maybe you can point me on your function which does
   it and tell me what to change (comment) in it?
 *  Thread Starter [xmmassage](https://wordpress.org/support/users/xmmassage/)
 * (@xmmassage)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/#post-9022384)
 * Chris? please )
 *  Plugin Author [Chris Baldelomar](https://wordpress.org/support/users/cbaldelomar/)
 * (@cbaldelomar)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/#post-9022991)
 * You can set a class name to your buttons, and apply your javascript in a file
   or in your footer like so:
 * [http://stackoverflow.com/questions/8908191/use-jquery-click-to-handle-anchor-onclick](http://stackoverflow.com/questions/8908191/use-jquery-click-to-handle-anchor-onclick)

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

The topic ‘Javascript in BUTTON HREF stopped to work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-shortcodes_ffffff.svg)
 * [Shortcodes by Angie Makes](https://wordpress.org/plugins/wc-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-shortcodes/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Chris Baldelomar](https://wordpress.org/support/users/cbaldelomar/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-button-href-stopped-to-work/#post-9022991)
 * Status: resolved