posted 13 years ago
Could anyone suggest how I can put together some Javascript to check which page I am on and load the approriate js file into the header?
I am using an include file for my header but do not want all of my JS files loaded into the header, so thought I could write some loginc to only load the appropriate JS file(s) for that page.
I have the basic:-
To find my url, but what I want is something like:-
Cheers in advance