<script> function myfunc() { this.value ='' } </script> <input type='text' onclick='myfunc.call(this)' value='222'>