calling function on click html
<button onClick="script">
<img src="hospital.png" id="hospitals" onclick="damarkers();">var myElem = document.getElementByID('ElemID');
myElem.onclick = function() {
//do stuff
}<button onclick="myFunction()">Click me</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "Hello World";
}
</script>
Also in HTML:
- how to start using jQuery CDN
- how to bind the data in html table in java
- sample text
- a column inside another column bootstrap html
- reactive forms radio button
- how to eliminate scroll bar in html
- how to include a dash in html
- html input
- how to show a javascript variable in html
- html inline javascript
- javascript create node from innerhtml
- how to make a calculator website HTML
- link to section on page html
- html2pdf pagebreak option
- vue conditional class
- center text in a html file
- minimum width of different devices in html
- JSPL loop through map keys
- play audio html
- ome tv
- html set icon
- responsive youtube embed html
- copyright symbol html
- reset image tag js