Viewing 1 replies (of 1 total)
  • “View source” is the way to go when curious about things like this.

    Here’s the URL field:
    <input name="url" id="url" value="URL" onFocus="if (this.value == 'URL') this.value = '';" onBlur="if (this.value == '') this.value = 'URL';">

    The onFocus and onBlur are handling the magic.

Viewing 1 replies (of 1 total)
  • The topic ‘onClick Erase’ is closed to new replies.