<html> <head> <title></title> <script type="text/javascript"> function disable(){ document.getElementById('field').disabled = true; } </script> </head> <body> <input type="text" id="field"> <input type="button" value="検索" onclick="disable();"> </body> </html>