create a button that click in js onclick 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();">