Title: Adding Javascript to Page?
Last modified: August 19, 2016

---

# Adding Javascript to Page?

 *  [submo6](https://wordpress.org/support/users/submo6/)
 * (@submo6)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/adding-javascript-to-page/)
 * I am currently trying to add the following Javascript into one of my Pages, it
   is not showing up. If I put the Javascript into my sidebar it works perfectly
   fine. I just do not want to put it into my sidebar, I want it to work on one 
   of my Pages.
 * The script I am trying to use is this:
 *     ```
       <SCRIPT LANGUAGE="JAVASCRIPT">
       			today = new Date();
       			BigDay = new Date("July 15, 2011")
       			msPerDay = 24 * 60 * 60 * 1000 ;
       			timeLeft = (BigDay.getTime() - today.getTime());
       			e_daysLeft = timeLeft / msPerDay;
       			daysLeft = Math.floor(e_daysLeft);
       			e_hrsLeft = (e_daysLeft - daysLeft)*24;
       			hrsLeft = Math.floor(e_hrsLeft);
       			minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
       			document.write(daysLeft + " days");
       			</SCRIPT>
       ```
   
 * Any suggestions on how I can get this to show up?

Viewing 1 replies (of 1 total)

 *  [Josh Leuze](https://wordpress.org/support/users/jleuze/)
 * (@jleuze)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/adding-javascript-to-page/#post-882819)
 * The WordPress editor doesn’t play well with code that is out of its bounds, and
   this is out of its bounds.
 * You can add code like this to your pages and posts by using the [Raw HTML plugin.](http://wordpress.org/extend/plugins/raw-html/)

Viewing 1 replies (of 1 total)

The topic ‘Adding Javascript to Page?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Josh Leuze](https://wordpress.org/support/users/jleuze/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/adding-javascript-to-page/#post-882819)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
