Welcome to zerokspot.com, the personal website of Horst Gutmann.

js_include

This post was written on 2006/05/09 at 15:15:10

J Wynia has written a nice little include function for JavaScript basically embedding the included-script nicely into the head element of the displaying HTML page. So all you have to do is puts something like js_include('path/to/file.js'); into one of your already "installed" JavaScript files. Definitely much nicer than dothing something

ugly like document.write('<script type="text/javascript" src="http://domain.com/j/newlib.js"></script>');.

blog comments powered by Disqus