<body>
<input type="text" value="测试" onblur="if(this.value=='')this.value='测试';" onfocus="if(this.value=='测试')this.value='';" />
</body>
<body>
<input type="text" value="测试" onblur="if(this.value=='')this.value='测试';" onfocus="if(this.value=='测试')this.value='';" />
</body>