Title: How to execute javascript in plugin?
Last modified: August 19, 2016

---

# How to execute javascript in plugin?

 *  [mariostella](https://wordpress.org/support/users/mariostella/)
 * (@mariostella)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-execute-javascript-in-plugin-1/)
 * Hello, how do you execute JS inside a plugin? Do you call it from an external
   file? And if yes how? I cannot find any resource on WP.org or elsewhere…
    Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [mariostella](https://wordpress.org/support/users/mariostella/)
 * (@mariostella)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-execute-javascript-in-plugin-1/#post-959297)
 * I forgot to specify:
    This is for a google map, so I need to call an external
   javascript file (which can be echoed or can be done using wp_enqueue_script),
   but I also need to write a piece of javascript and execute it on the post write/
   edit page.

Viewing 1 replies (of 1 total)

The topic ‘How to execute javascript in plugin?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [mariostella](https://wordpress.org/support/users/mariostella/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-execute-javascript-in-plugin-1/#post-959297)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
