Announcement

Collapse
No announcement yet.

Javascript for disappearing text in field box

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript for disappearing text in field box

    I have a form on my site allowing people to subscribe to my newsletter. I want the box in which they enter their email address to say "[email protected]" and when they click on the box to enter their email the text of "[email protected]" disappears. I've seen it on other sites but can't find any of them right now.
    Diesel Records

  • #2
    This should work.

    Code:
    <input onfocus="this.value=''" value="[email protected]" name="email_address" />

    Comment


    • #3
      Thanks. Exactly what I needed.
      Diesel Records

      Comment


      • #4
        Originally posted by DjArcadian
        Thanks. Exactly what I needed.
        No probs

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X