Skip links

How to add text that disappears in a form text field when clicked (onfocus)

July 21, 2011

.. very simply by adding onfocus=”this.value=””  to your input or text area HTML.

i.e.  <textarea name=”caption” id=”caption”  onfocus=”this.value=”” rows=”1″>enter  your new caption here</textarea>

chris-parker
This website uses cookies to improve your web experience.
chris-parker

Send me a message.

Happy to answer any question you may have.

chris@chrisparkerdesign.co.uk

07813 311253

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

    CHRIS PARKER DESIGN

    chris@chrisparkerdesign.co.uk

    07813 311253