Forums
Home / Plugin: WordPress Button Plugin MaxButtons / onclick instead of link
(@erezspeiser)
5 years, 7 months ago
I would like a button to preform an onclick function (And not to follow a link). In this specific case to make a page refresh. IS it possible and how? Thanks
(@basszje)
You can try to put ‘javascript:my_function(); return false;’ in the URL field, with the function pointing to what you want to execute.
If you already linked the function to the button somehow putting javacript:void(0) in the URL field will prevent it from doing anything.