Title: Add javascript to an entry
Last modified: August 18, 2016

---

# Add javascript to an entry

 *  [mihaigrigori](https://wordpress.org/support/users/mihaigrigori/)
 * (@mihaigrigori)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/add-javascript-to-an-entry/)
 * I’m trying t add a piece of javascript code in one of my entries but the code
   is interpreted by wordpress so it doesn’t have the effect I want.
    I.E. adding
   <script>alert(‘hello’)</script>
 * will enclose it into paragraph and also will convert ‘ to html code…
 * i’m using WP 2.02
 * Any ideas?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/add-javascript-to-an-entry/#post-408513)
 * 1. Don’t put code ever in the wysiwyg editor.
    2. [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)

Viewing 1 replies (of 1 total)

The topic ‘Add javascript to an entry’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 12 months ago](https://wordpress.org/support/topic/add-javascript-to-an-entry/#post-408513)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
