So I tried to google my problem, but for a change I didn't get any worthwhile answers. What I want to do is to have an external js file to define some functions (which will be used for form validation). Then I want to use the external functions inside each html to validate the particular forms (obviously forms on different pages will be different).
So what I had done:
The above is not working for me. Is this even possible, and if so, do you know what is wrong? If you need actual code I have used, I shall post later.