External JS Files
This page uses an obsolete attribute LANGUAGE="JavaScript";
Question: Can I include JavaScript code from external JS files, rather than embedding all my scripts within HTML pages?
Answer:
Yes. To do so, create a new file with the extension
To embed <SCRIPT LANGUAGE="JavaScript" SRC="myscript.js"> </SCRIPT>In practice, you might find it convenient to create .js
files containing JavaScript functions that you reuse
on many different HTML pages.
Please note, however, that some very old browsers
(e.g. Navigator 2.x and Explorer 3.x)
cannot load external JavaScript files!
|
Copyright © 1999-2011, JavaScripter.net.