Connecting a .js file to an html file.

Hello Friends,
I am having a little stress in connecting my .js external file to my html.
In CSS, there's a tool in the Properties Panel of dream weaverused in linking .css to html. Now, my questions is: Is there a tool that can be used to link each page automatically, once, just like in css.
Thanks,
Golden Waters.
 
Last edited:

artimes

New Member
I'm not sure if there's a option for inserting external javascript files into your html document. But in the code you just add:

<script language="JavaScript" src="your-javascript-file.js" type="text/JavaScript"></script>

Make sure you copy that before your </head> and change your-javascript-file.js to whatever yours is called.

Hope that helps.
 
Thanks Phreaddee and Artimes, your response is helpful. I have been able to do it just as you both advised me to.

Thanks,
Golden Waters
 
Top