dvdljns
11-04-2003, 01:39 AM
:D :D Ok! I know this is going to sound like a dumb Question. But if you want use a lot of JS on a webpage. Can you keep the scripts on a seperate page and load the whole page. Like loading programs from a batch file. If so what is the easiest way.
James L.
11-04-2003, 01:55 AM
Hey,
If you are referring to having a separate Javascript "library" that is linked into your html document, the usual thing to do is to place all of your Javascripts into a document and save it with the .js extension... i.e.:
yourSite.js
Then, for each page you want to use these scripts on, place this into the head section of the page:
<script type="text/javascript" src="yourSite.js"> </script>
This loads your external javascript file in when the page loads.
...hope that helps!