Title: Javascript woes
Last modified: March 30, 2022

---

# Javascript woes

 *  [g3rman42](https://wordpress.org/support/users/g3rman42/)
 * (@g3rman42)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/javascript-woes/)
 * I am running a node.js server on my system that enables web-based telnet connections
   to my system.
    I’m struggling to get the code correctly applied to WordPress.
   It works just fine if I run the code from a local html file in Windows.
 * Any thoughts would be appreciated.
    -  This topic was modified 4 years, 2 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: removed redundant url
    -  This topic was modified 4 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-woes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [jamiehlake](https://wordpress.org/support/users/jamiehlake/)
 * (@jamiehlake)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/javascript-woes/#post-15512122)
 * Hi there,
 * The simplest way to add JavaScript code to WordPress is using the [Insert Headers and Footers plugin](https://wordpress.org/plugins/insert-headers-and-footers/).
 * Hope this helps
    -Jamie
 *  Thread Starter [g3rman42](https://wordpress.org/support/users/g3rman42/)
 * (@g3rman42)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/javascript-woes/#post-15512155)
 * Thanks Jamie,
 * The problem ended up being mixed content (https/http) on the same page.
    I moved
   the http content to a different virtual host and now it works as designed.

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

The topic ‘Javascript woes’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [g3rman42](https://wordpress.org/support/users/g3rman42/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/javascript-woes/#post-15512155)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
