Revision: 12064
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 28, 2009 20:26 by Unreal
Initial Code
<form action="search.php" method="get"> <input type="text" name="q" size="40" class="q" id="q" value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" /> <input type="submit" value="Search"> </form>
Initial URL
http://www.imbenc.co.uk
Initial Description
Nice little snippet. Should be used on all text fields in my opinion.
Initial Title
Onclick Delete Contents Onblur Put Back Value
Initial Tags
Initial Language
JavaScript