Title: calling a JavaScript function from the media directory
Last modified: August 20, 2016

---

# calling a JavaScript function from the media directory

 *  [wealthcoachinguk](https://wordpress.org/support/users/wealthcoachinguk/)
 * (@wealthcoachinguk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/calling-a-javascript-function-from-the-media-directory/)
 * New to wordpress and my first post.
 * I have a flash swf file living in my media directory at
 * [http://www.wealthcoachinguk.com/wp-content/uploads/2012/03/wol.swf](http://www.wealthcoachinguk.com/wp-content/uploads/2012/03/wol.swf)
 * and the swf file wants to call a JavaScript function on my HTML page living at
 * [http://www.wealthcoachinguk.com/?page_id=4](http://www.wealthcoachinguk.com/?page_id=4)
 * Now on my old non-wordpress web site I just put the html and swf file in the 
   same directory and this call always worked
 * javascript:top.fSendForm()
 * But now the swf file is in another location I don’t know how to reference my 
   JavaScript function.
 * Not done JavaScript for over 10 years so would appreciate any help with this!
 * thx

The topic ‘calling a JavaScript function from the media directory’ 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/)
 * 0 replies
 * 1 participant
 * Last reply from: [wealthcoachinguk](https://wordpress.org/support/users/wealthcoachinguk/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/calling-a-javascript-function-from-the-media-directory/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
