Cancella Input con un Pulsante





https://www.w3schools.com/howto/tryit.asp?filename=tryhow_html_clear_input2
' Cancella il campo di input quando fai clic sul pulsante:



<!DOCTYPE html>
<html>
<body>

<p>Clear the input field when you click on the button:</p>
<button onclick="document.getElementById('myInput').value = ''">Clear input field</button>

<input type="text" value="Blabla" id="myInput">

</body>
</html>










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