Preventing form submission with zero Javascript

from blog HTMHell, | ↗ original
↗ original
Want to trigger an action? Use a button element. They’re great. Want to also prevent form submission when someone clicks that button? Put down the JavaScript, friend. I have a better suggestion: button type="button"> Button action goes herebutton> And that’s it! No preventDefault() or no overwrought dependencies that will stop working without...