Per bloccare....
<input type="text" id="pippo">
<input type="button" name="pippo2" value="Clicca" onclick="document.getElementById('pippo').readOnly =true;">
Per bloccare....
<input type="text" id="pippo">
<input type="button" name="pippo2" value="Clicca" onclick="document.getElementById('pippo').readOnly =true;">