Answers for "calls javascript in html<link>"

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
1

html javascript link

// This is an awesome answer!
// This is how you link HTML to your JavaScript! -> Enjoy and Prosper!
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language