Title: What Is The Proper Code To Call Javascript?
Last modified: August 21, 2016

---

# What Is The Proper Code To Call Javascript?

 *  [markylad](https://wordpress.org/support/users/markylad/)
 * (@markylad)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/what-is-the-proper-code-to-call-javascript/)
 * Hi,
    For some reason, a piece of JS isn’t working anymore (it was up until a 
   few days ago).
 * The JS is fine and then I call it where I want it to appear in the post (it’s
   a little calculator) with this
 * <script type=”text/javascript”>// <![CDATA[
    mhspcalc(); // ]]></script>
 * But it’s not working any more?
 * Any ideas, guys?
 * Any help would be great.

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/what-is-the-proper-code-to-call-javascript/#post-4205620)
 * Try reviewing: [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)

Viewing 1 replies (of 1 total)

The topic ‘What Is The Proper Code To Call Javascript?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/what-is-the-proper-code-to-call-javascript/#post-4205620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
