If you like that and want to do it for all of your text fields, you can do this:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="#">
<div>
<input type="text"><br>
<input type="TEXT"><br>
<input><br>
<input type="button" value="this button does nothing really">
</div>
</form>
<script type="text/javascript">
;(function(){if(!document.getElementsByTagName)return;for(var x,y=
function(e){var z=e&&e.target?e.target:event.srcElement,s=z.value;
z.value='';setTimeout(function(){z.value=s;},0);},t=
document.getElementsByTagName('input'),i=t.length-1;i>-1;--i)
if((x=t[i].getAttribute('type',0))=='text'||x==null)t[i].onblur=y;})();
</script>
</body>
</html>
The script could even be made external and used with multiple pages. It must appear or be linked as the very last thing before the </body> tag (or at least be after all text inputs on the page that you want this treatment given to).
Bookmarks