Onclick clear text - textfield

What is the best method to clear text in a text field?
EXP. if the text search field says "Email Address" and when click on it, it clears the value.
<input onblur="if(this.value == ''){this.value ='Email Address'}" onfocus="if(this.value == 'Email Address') {this.value=''}" type="text" />

0 Response to "Onclick clear text - textfield"

Article Top Ads


Central Ads Article 1

Middle Ads Article 2

Article Bottom Ads