In your HTML HEADER add this code
<script type=”text/javascript”>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = “”
}
</script>
In your html input tag add this code
onfocus=”clearText(this);”
October 23rd, 2008 | JavaScript, Web Development
In your HTML HEADER add this code
<script type=”text/javascript”>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = “”
}
</script>
In your html input tag add this code
onfocus=”clearText(this);”
0 comments ↓
If you found this post useful click the share this button. Contribute below by adding a comment, no registration is required.
DCE's Most Talked About Posts
Read Full Article...
Read Full Article...
Read Full Article...
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment