<input type="button" value="Clicca!" onclick="alert(document.getElementById('testo').va lue)">

ciao