Thread: Site searches
Results 1 to 5 of 5
05-12-2003, 02:29 PM #1
Calling contents of an external js file
Ok! Be gentle on this newbie. How do I set up an external js file?
Then, how do I call for the contents of this file to appear embedded at a specific location in a html file?
Last edited by nassau12; 05-13-2003 at 03:15 PM.
05-15-2003, 01:35 PM #2
You call it to the HTML page by adding this:
05-15-2003, 02:55 PM #3
Place the name of the .js file to be included inside the </HEAD> tag of the HTML file which calls the function. Most of my functions are encoded within my HTML files like this:
That's a call to the function that displays the 'www' and 'site' check-off style Google search box with image and includes the search phrase "HTML help" inside the search box. The function inside my master search.js file is (note that the right side code is truncated, so this won't work without some editing):
Last edited by HTML; 03-20-2007 at 08:37 PM.
05-16-2003, 09:22 AM #4
Thanks for the help. I knew that you would have the answer.
You would be surprised how difficult it is to find this kind of information in standard tech manuals and tutorials.
05-16-2003, 01:17 PM #5
Yeah, forums like this didn't exist when I learned basic HTML the hard way - mostly by looking at the source code of others to see how they did it.