Title: button keeps adding link
Last modified: August 30, 2016

---

# button keeps adding link

 *  Resolved [esp2013](https://wordpress.org/support/users/esp2013/)
 * (@esp2013)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/button-keeps-adding-link/)
 * I’ve added buttons with an onclick jquery function to show/hide div but the buttons
   keep adding a link tothe home page so they redirect the page after opening the
   div. I have made sure that the link input box is empty but it just keeps doing
   it. How can I disable this action? I just want the onclick function
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [esp2013](https://wordpress.org/support/users/esp2013/)
 * (@esp2013)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/button-keeps-adding-link/#post-6440484)
 * Just solved this myself so if anyone else comes across this issue, after su_button
   add url=”javascript:void(0);” then the browser won’t reload the page. Yay

Viewing 1 replies (of 1 total)

The topic ‘button keeps adding link’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [esp2013](https://wordpress.org/support/users/esp2013/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/button-keeps-adding-link/#post-6440484)
 * Status: resolved