<!DOCTYPE html>
<html>
<body>
<p>获得焦点时清除输入字段:</p>
<input type="text" onfocus="this.value=''" value="Blabla">
</body>
</html>