Set the default text for the search box to disappear when you click

Time:2020-4-1

Copy code

The code is as follows:

< input type = “text” name = “kword” value = “search by project name…” onfocus = “if (this. Value = = ‘search by project name…’) this. Value = ‘;” onblur = “if (this. Value = =’ ‘) this. Value =’ search by project name… ‘;” style = “color: #a0a0a0a0; width: 145px;” >