Title: Using Javascript in a post
Last modified: August 20, 2016

---

# Using Javascript in a post

 *  [mhintzke](https://wordpress.org/support/users/mhintzke/)
 * (@mhintzke)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/using-javascript-in-a-post/)
 * I would like to implement a little MD5 hash generator tool in one of my posts.
   I have a javascript file with an md5() function that returns the hash and I would
   like to include it into just this post and use the function in my page. I created
   an input text and button and onclick, I call the md5() function. How can I do
   this? Right now I get the error: Refused to execute a JavaScript script. Source
   code of script found within request.
 * I tried the method here [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)
   but it did not work…
 * Thanks,
    Matt

The topic ‘Using Javascript in a post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mhintzke](https://wordpress.org/support/users/mhintzke/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/using-javascript-in-a-post/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
