afflik1923
asked on
Reference external Javascript file from external javascript file - How?
It should be simple but I must be tired or crazy right now.
But how do I reference a javascript file from another javascript file.
In my particular case I need to import a JSON co library into a javascript file that is called from the main HTML page.
But that does not matter, I just need to know how to call a javascript file from another javacript file. (I of course know how to reference one from a HTML file).
Equivelant command in PHP would be require_once.
Thanks.
But how do I reference a javascript file from another javascript file.
In my particular case I need to import a JSON co library into a javascript file that is called from the main HTML page.
But that does not matter, I just need to know how to call a javascript file from another javacript file. (I of course know how to reference one from a HTML file).
Equivelant command in PHP would be require_once.
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
All suggestions good but the easiet and one I used was the omarked as accepted solution.
Open in new window