Include a file: Difference between revisions

m (oops, omitted closing lang tag)
Line 45:
 
<lang j>load 'myheader.ijs'</lang>
=={{header|JavaScript}}==
Following example, if loaded in an HTML file, loads jQuery[[http://jquery.com/]] library from remote site
<lang javascript>var s = document.createElement('script');
s.type = 'application/javascript';
 
// path to the desired file
s.src = 'http://code.jquery.com/jquery-1.6.2.js';
document.body.appendChild(s);</lang>
 
=={{header|Lua}}==
Anonymous user