Input text - pre-Placeholder

Remove text when textbox is selected, then put it back if it left empty
This is what we used to do before we got the placeholder tag for Input in HTML

CodeFunctionName
What is this?

Public

Tested

Original Work
< input class='search-text' id='search-text-' name='q' onblur='if (this.value == "") {this.value = "Search here";}' onfocus='if (this.value == "Search here") {this.value = ""}' tabindex='7' type='text' value='Search here'/ >


' Inherited from Alwah site

< input class='search-text' id='search-text-' name='q' onblur='if (this.value == "") {this.value = "البحث في شبكة ألواح";}' onfocus='if (this.value == "البحث في شبكة ألواح") {this.value = ""}' tabindex='7' type='text' value='البحث في شبكة ألواح'/ >


Views 822

Downloads 303

CodeID
DB ID

ANmarAmdeen
610
Attachments
Revisions

v2.0

Saturday
October
10
2020