You are not logged in.
yes, you can do this. add js function to url attribute:
this will work only on a web server.
Would something like this be possible ?
Would I be able to call user-defined function defined in another js file ?
I am afraid this will not work. You should do the following:
and then add this function in your html.