How can I call a functions stored within a JS file from an event? Example of the JS file is at the bottom of this post.
I do successfully use ExecScript by Jeremy Kahn, but this script runs entire file and does not allow picking a function from within the file. Hence, I am looking for a solution that allows to call a function from within the file.
Here is an example of what I would like to call -- the function hello_world:
Thank you.
I do successfully use ExecScript by Jeremy Kahn, but this script runs entire file and does not allow picking a function from within the file. Hence, I am looking for a solution that allows to call a function from within the file.
Here is an example of what I would like to call -- the function hello_world:
JavaScript:
//=======================
// my_tests.js
//=======================
function hello_world(){
console.log('Hello World!');
};
Thank you.