Answers for "how to make a function call in javascript on button click"

4

javascript onclick

document.getElementById("Save").onclick = function ()
    {
     alert("hello");
     //validation code to see State field is mandatory.  
    }
Posted by: Guest on September-08-2020
0

calling function on click html

<img src="hospital.png" id="hospitals" onclick="damarkers();">
Posted by: Guest on June-27-2020

Code answers related to "how to make a function call in javascript on button click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language