How to submit a form with JavaScript by clicking a link?
The best way The best way is to insert an appropriate input tag: The best JS way Enclose the latter JavaScript code by an DOMContentLoaded event (choose only load for backward compatiblity) if you haven’t already done so: The easy, not recommandable way (the former answer) Add an onclick attribute to the link and an … Read more