Onclick rimanda a funzione







<html>
<body>

<p>This example uses the HTML DOM to assign an "onclick" event to a p element.</p>

<p id="demo">Click me.</p>

<script>
document.getElementById("demo").onclick = function() {myFunction()};

function myFunction() {
document.getElementById("demo").innerHTML = "YOU CLICKED ME!";
}
</script>

</body>
</html>











( onclickrimandaafunzione.html )- by Paolo Puglisi - Modifica del 17/12/2023