Unable to call js file to another page

My problem is that I have included my js code in the index.html footer as:

<script type="text/javascript" src="js/app.js"></script>
<!-- db -->
<script type="text/javascript" src="js/custom.js"></script>
<!-- Custom Functions -->
<script type="text/javascript" src="js/myfunctions.js"></script>

I have notcied that this code is not accessible on the other pages, please help me as sson as possible

Thanks

If you want to use functions of file A in file B, you can declare them like this in file A:

window.test = function() { ... }

and use them in file B like any other function:

test();

Be careful to use unique names for variables and functions.