how to start a function with onclick code example
Example 1: button functions html
<script>
function myFunction() {
alert("ALERT");
}
</script>
<button onclick="myFunction">Click</button>
Example 2: calling function on click html
<img src="hospital.png" id="hospitals" onclick="damarkers();">