Javascript for disappearing text in field box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DjArcadian
    Member
    • Nov 2002
    • 83

    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 "your@email" and when they click on the box to enter their email the text of "your@email" disappears. I've seen it on other sites but can't find any of them right now.
    Diesel Records
  • Rapid Gaming
    Senior Member
    • Jan 2003
    • 1865
    • 3.0.3

    #2
    This should work.

    Code:
    <input onfocus="this.value=''" value="your@email" name="email_address" />

    Comment

    • DjArcadian
      Member
      • Nov 2002
      • 83

      #3
      Thanks. Exactly what I needed.
      Diesel Records

      Comment

      • Rapid Gaming
        Senior Member
        • Jan 2003
        • 1865
        • 3.0.3

        #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...