Martin Jopson wrote: > What would be the best way to link to multiple JavaScript files? > > I have noticed with linking to external CSS files that often a single > link is used (per media type in some cases) and that linked CSS file > use @import to reference any number of further CSS files. > > Is there a similar or better technique for doing this with JavaScript > files? > > Sorry if this is soooo basic but my method so far is to use a htm > include file containing the relevant links. > e.g. > In the page head area: > <!--#include virtual="/include/scripts.htm" --> > > with the contents of scripts.htm being: > > <script type="text/javascript" src="/js/addEvent.js"></script> > <script type="text/javascript" src="/js/sweetTitles.js"></script>
What about: <script type="text/javascript" src="/js/generic.js"></script> The content of that file includes the "addEvent" and "sweetTitles" scripts. Regards, Thierry | www.TJKDesign.com ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
