[Javascript] javascript includes

Chris Harrison chrisharrison.com.au at gmail.com
Tue May 17 20:27:11 CDT 2005


This was asked before, check the archives.



On 5/18/05, Rick den Haan <rick.denhaan at gmail.com> wrote:
> Hello List,
> 
> I couldn't find an answer on Google, so I thought I'd ask here.
> 
> Is it possible to include a .js file, FROM a .js file? I guess what
> I'm looking for is the javascript equivalent to the PHP "include"
> command. I know you can document.write() a <script src...> but is
> there no other way?
> 
> The reason I'm asking is I have several completely different and
> unrelated functions spread over several files, and instead of having
> six or seven <script> tags in my <head>, and IMO it'd be a lot cleaner
> to have one <script> tag including the one file that include the
> others.
> 
> Hope you can help
> 
> Rick.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


-- 
This is my sig.  There are many like it, but this one is mine.
Without me, it is useless, without it, I am useless.
http://chrisharrison.com.au



More information about the Javascript mailing list