hw to call javascript function on button click htmnl code example
Example 1: javascript button
<button onclick="Function()">Text</button>
Example 2: calling function on click html
<img src="hospital.png" id="hospitals" onclick="damarkers();">
<button onclick="Function()">Text</button>
<img src="hospital.png" id="hospitals" onclick="damarkers();">