Title: Using a Javascript correctly??
Last modified: August 18, 2016

---

# Using a Javascript correctly??

 *  [timediva](https://wordpress.org/support/users/timediva/)
 * (@timediva)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/using-a-javascript-correctly/)
 * Hi
 * I’m trying to get a javascript to work… the script needs to be in the body.
 * This scripts is an aweber personalization script… when somebody fills out the
   subscription form the thank you page displays their name…
 * I’ve put this script in the header under the body tag… right about the form…at
   the end of the form… I put in the footer above the body tag…
 * It’s won’t work (script works on non-wordpress sites)
 * I read this
 * In the spot where you wish to use the Javascript, set the call for the Javascript.
   For example, you are using a Javascript that sets a link for users to “email 
   this page” to a friend and you want it to be under the post title. It might look
   like this:
 * <h3 class=”storytitle”>
    ” rel=”bookmark”> <?php the_title(); ?></h3> <div class
   =”emailpage”> <script type=”text/javascript”> <!– emailpage(); //–></script> 
   </div>
 * I’m not quite sure what they mean… I took the script and saved it as a aweber.
   js uploaded to the template directory and the main wordpress directory…
 * I then changed the above to
    <script type=”text/javascript”> <!– aweber(); //–
   ></script> and still nothing…
 * What the correct way to create, uploaded the script so wordpress will call it…
   I’m not a programmer.
 * Thanks
 * Time Diva

The topic ‘Using a Javascript correctly??’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [installing](https://wordpress.org/support/topic-tag/installing/)
 * [javascripts](https://wordpress.org/support/topic-tag/javascripts/)

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
