我已经使用JS阅读了一些关于这方面的文章。当用户登陆on the page时,有没有办法使用或使用JS让onFocus在IE中工作?
如果您单击搜索框并再次关闭,则会出现search site...。它在所有其他浏览器中都能正常工作。谢谢。
发布于 2012-08-16 18:53:06
将值属性添加到搜索输入字段
<input value="search site..." class="searchBox" id="q" onfocus="this.value = this.value=='search site...'?'':this.value;" onblur="this.value = this.value==''?'search site...':this.value;" type="text" size="70"/>https://stackoverflow.com/questions/11985474
复制相似问题