I have this file: a.js
export function work(){
// do stuff
}
And this jsp file:
...
<script type="text/javascript" src='<c:url value="/javascripts/a.js"/>'></script>
...
How do I call the function "work" from my jsp file? It always says "work is not defined"
Attempted (deeper in the jsp):
...
<th><a href="#" onclick="return work();" > Work # </a></th>
...