FORUMS: list search recent posts

How do I set up an external JavaScript?

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Robert Stoelting
How do I set up an external JavaScript?
on Feb 1, 2007 at 7:21:04 pm

I read in "Web Site Services" that externalizing JavaScripts helps with SEO by getting the script out of the top of the page. I don't know how to write JavaScripts, but I use prepared scripts from Dreamweaver and other sources. How/Where can I learn to make these scripts external and reference them on the pages I use them on (without having to learn JavaScript)?



Return to posts index

Curtis Thompson
Re: How do I set up an external JavaScript?
on Feb 1, 2007 at 7:27:44 pm

hello...

pretty simple - just take the javascript block you have (just the js code - not the wrapper <SCRIPT> and comment lines) and put it in an external file somewhere and name it [NAME].js (with your own [NAME] naturally) - then reference it in one script call line:

<SCRIPT SRC="[NAME.js" type="text/javascript"></SCRIPT>

more here:

http://www.javascriptkit.com/javatutors/external.shtml

sitruc


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]