Title: How to add javascript?
Last modified: August 22, 2016

---

# How to add javascript?

 *  [EOSlover](https://wordpress.org/support/users/eoslover/)
 * (@eoslover)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/how-to-add-javascript-2/)
 * I’m trying to get JavaScript in the input fields so I can hide text on click.
 * `value="Search" onblur="if(this.value=='') this.value='Search';" onfocus="if(
   this.value=='Search') this.value='';"`
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

The topic ‘How to add javascript?’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [EOSlover](https://wordpress.org/support/users/eoslover/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/how-to-add-javascript-2/)
 * Status: not resolved