Answers for "how to call javascript function from a href"

2

a href call funtion

<a href="javascript:yourFunction();">
Posted by: Guest on May-21-2020
0

how to make a html link execute a javascript function

<a href="javascript:alert('Hello!');">Clicky</a>
<!--or-->
<button onclick="alert("Hello")">Click Me!</button>
Posted by: Guest on March-06-2021

Code answers related to "how to call javascript function from a href"

Browse Popular Code Answers by Language