Title: JavaScript in one page only
Last modified: August 31, 2016

---

# JavaScript in one page only

 *  [RedirDom](https://wordpress.org/support/users/redirdom/)
 * (@redirdom)
 * [10 years ago](https://wordpress.org/support/topic/javascript-in-one-page-only/)
 * I am kind of new to WP and I was wondering how can i add a JavaScript code to
   work only inside one page (contact form).
 * thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Clarion Technologies](https://wordpress.org/support/users/clarionwpdeveloper/)
 * (@clarionwpdeveloper)
 * [10 years ago](https://wordpress.org/support/topic/javascript-in-one-page-only/#post-7435997)
 * Hello RedirDom,
 * Please follow the below link this will help you to apply the page condition where
   you want to add the java-script.
 * [https://developer.wordpress.org/reference/functions/is_page/](https://developer.wordpress.org/reference/functions/is_page/)
 * Thanks
 *  Thread Starter [RedirDom](https://wordpress.org/support/users/redirdom/)
 * (@redirdom)
 * [10 years ago](https://wordpress.org/support/topic/javascript-in-one-page-only/#post-7435998)
 * Thanks Clarion Technologies, i looked at the page you suggested but i am still
   not sure how to add the code inside a single page. In other words, let’s say 
   i have the javascript code all ready in a txt file on my desktop, how do i tell
   WP that i want to use it on page “contact”?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JavaScript in one page only’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [RedirDom](https://wordpress.org/support/users/redirdom/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/javascript-in-one-page-only/#post-7435998)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
