Title: Problems using Javascript in posts
Last modified: August 21, 2016

---

# Problems using Javascript in posts

 *  Resolved [solid7](https://wordpress.org/support/users/solid7/)
 * (@solid7)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/)
 * I am able to do simple things in the body of a post, like call alert boxes. But
   anything more complex than that fails. I have tried a plain HTML version on my
   webhost, calling the javascript, and it works fine. But in my Annotum theme posts,
   code doesn’t work.
 * Please help.
 * Thank you.

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

 *  [Carl Leubsdorf](https://wordpress.org/support/users/solvitor/)
 * (@solvitor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4242917)
 * Can you put JavaScript in text widgets? The theme definitely strips script from
   articles, but it doesn’t surprise me if this happens with ordinary posts as well.
 *  Thread Starter [solid7](https://wordpress.org/support/users/solid7/)
 * (@solid7)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4242937)
 * How can I defeat that limitation?
 * I’m not sure if I can use JS in widgets or not. Got something that I can test?
 * Thanks for your reply.
 *  Theme Author [annotum](https://wordpress.org/support/users/annotum/)
 * (@annotum)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4242945)
 * Can you try this?
 * [http://codex.wordpress.org/Using_Javascript#JavaScript_in_Posts](http://codex.wordpress.org/Using_Javascript#JavaScript_in_Posts)
 * I am pretty certain this will not work in articles, but it should work in posts.
 *  Thread Starter [solid7](https://wordpress.org/support/users/solid7/)
 * (@solid7)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4243131)
 * Thanks, annotum. That was the very first thing I tried. No luck. 🙁
 *  Thread Starter [solid7](https://wordpress.org/support/users/solid7/)
 * (@solid7)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4243135)
 * UPDATE: Got it all figured out. Calling externally is the ticket. There must 
   have been some other error that I didn’t pick up on before.
 * Thank you for all of your help.
 *  Theme Author [annotum](https://wordpress.org/support/users/annotum/)
 * (@annotum)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4243136)
 * Cool – glad it is working for you!

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

The topic ‘Problems using Javascript in posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/annotum-base/2.0/screenshot.png)
 * Annotum Base
 * [Support Threads](https://wordpress.org/support/theme/annotum-base/)
 * [Active Topics](https://wordpress.org/support/theme/annotum-base/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/annotum-base/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/annotum-base/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [annotum](https://wordpress.org/support/users/annotum/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/problems-using-javascript-in-posts/#post-4243136)
 * Status: resolved