Question about .js files
Hi all,
My questions revolve around the JavaScript file. I have a number of scripts on each of my pages. I have been told to add them to a .js file and refer to that file on the webpage.
I have accomplished this with a CSS file for styles.
How do I do this with JavaScript? Then once I have the file, what code do I use to in the web page?
Does anyone have a good tutorial?
For example, I have one script one every page that has graphics that will allow you to "click to enlarge!” I have other scripts on the same page.
1. How do I consolidate all the scripts in one file?
2. What code do I put at the top of the web page (some like this? = <link rel=stylesheet type="text/css" href="FILENAME.css">)?
3. What do I put on the webpage to reference which JavaScript from the .js file that I want to use?
Confused yet? I sure as hell am! :) :)
Thanks in advance for all your help.
M
|