onclick function in input tag 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();">