/ Published in: JavaScript
URL: http://www.cryer.co.uk/resources/javascript/script17_include_js_from_js.htm
Get one javascript file to include other required javascript files. Usefull when externalising blocks of code from html (Found at linked URL)
Expand |
Embed | Plain Text
function IncludeJavaScript(jsFile) { document.write('<script type="text/javascript" src="' + jsFile + '"></scr' + 'ipt>'); } IncludeJavaScript('my_2nd_file.js');
You need to login to post a comment.
