run a javascript file that is on resources

I need to execute a JavaScript file, I already add to the resources folder put a Deploy Action(Deploy to target Directory). How can I access to run it in the preparation to use the functions?

i saw this post on form but i dont know how to acess using relative URL or a Runtime Path can you give me an exemple?

note i m using a traditional web dev module


you should by including it on the page with

<script type="text/javascript" src="/espace/resourcepath/yourfile.js"></script>

in an expression for example.

the  you should be able to access it with your javascript