Elemento This






<!DOCTYPE html>
<html>
<body>

<p onclick="myFunction(this, 'red')">Click me to change my text color.</p>

<script>
function myFunction(elmnt,clr) {
elmnt.style.color = clr;
}
</script>

</body>
</html>










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