Tags: onfocus

Sort by: Date / Title /

  1. 9 years ago by spirit
    1. function clearDefault(el) {
    2.   if (el.defaultValue==el.value) el.value = ""
    3. }
    4.  
    5. // Then call this function using the 'onfocus' value of your input box:
    6.  
    7. <input value="Your Comment" onfocus="clearDefault(this)" type="text">
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1862"></script>

First / Previous / Next / Last / Page 1 of 1 (1 posteets)