Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] javascript includes
- From: rick.denhaan at gmail.com (Rick den Haan)
- Subject: [Javascript] javascript includes
- Date: Tue May 17 19:30:21 2005
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.
- Follow-Ups:
- [Javascript] javascript includes
- From: Chris Harrison
- [Javascript] javascript includes
- From: Peter Brunone
- [Javascript] javascript includes
- Prev by Date: [Javascript] Alternative Image
- Next by Date: [Javascript] javascript includes
- Previous by thread: [Javascript] Re: Parsing XML terror alert level
- Next by thread: [Javascript] javascript includes
- Index(es):