Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q820 How can I include a 2nd *.js source file (file2.js) from within the 1st *.js source file (file1.js)?

irt.org | Knowledge Base | JavaScript | Source | Q820 [ previous next ]

Q820 How can I include a 2nd *.js source file (file2.js) from within the 1st *.js source file (file1.js)?

In file1.js use:

<script language="JavaScript"><!--
document.write('<script src="file-02.js"><\/' + script>');
//--></script>

Feedback on 'Q820 How can I include a 2nd *.js source file (file2.js) from within the 1st *.js source file (file1.js)?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.