Title: Javascript inside post, need help!
Last modified: August 19, 2016

---

# Javascript inside post, need help!

 *  [Rado](https://wordpress.org/support/users/jeriksson/)
 * (@jeriksson)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/javascript-inside-post-need-help/)
 * Hi,
 * I have some issues understanding why i can’t use javascripts in my posts.
 * I’ve read the details that i’ve found on google, and i still can’t get it to 
   work.
 * This is the javascript i want to work
 *     ```
       <SCRIPT LANGUAGE="JavaScript">
       function Login(form) {
       var username = form.username.value;
       var password = form.password.value;
   
       if (username && password) {
       var ftpsite = "ftp://" + username + ":" + password + "@" + "myftpserver.god.org:642";
       window.location = ftpsite;
       }
       else {
       alert("Please enter your username, password.");
          }
       }
       //  End -->
       </script>
       ```
   
 * And then im using html code for the login form:
 *     ```
       <form name=login>
       <table width=250 border=1 cellpadding=1 bordercolor=#736AFF>
   
       <tr>
       </tr>
       <tr>
       <td>Username:</td>
       <td><input type=text name=username size=20 value=anonymous></td>
       </tr>
       <tr>
       <td>Password:</td>
       <td><input type=password name=password size=20 value=anonymous></td>
       </tr>
       <tr>
       <td colspan=2 align=center>
       <input type=button value="Login" onClick="Login(this.form)"></td>
       </tr>
       </table>
       </form>
       ```
   
 * Issue is the button “login” isn’t clickable, which tells me something is wrong.
 * Please help me! thanks!

Viewing 1 replies (of 1 total)

 *  [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/javascript-inside-post-need-help/#post-1034525)
 * Please see this thread:
    [http://wordpress.org/support/topic/147154?replies=4](http://wordpress.org/support/topic/147154?replies=4)
 * Although you _can_ enable javascript in your post content, it is not very secure
   to so.

Viewing 1 replies (of 1 total)

The topic ‘Javascript inside post, need help!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael Fields](https://wordpress.org/support/users/mfields/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/javascript-inside-post-need-help/#post-1034525)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
