I'm not sure I follow your exact query, but you do the following to embed .js files:
Create a new file with the extension .js, for example, myscript.js. Put your JavaScript code in this file making sure not to include the opening and closing SCRIPT tags in the .js file.
To embed the myscript.js file into your Web page, use the following tags in your HTML file:
<SCRIPT LANGUAGE="JavaScript" SRC="myscript.js">
</SCRIPT>
Any good?
_________________
How To's, Faqs & Userguides
We know you need help, that's why you joined our support forum,
so please use descriptive titles in your threads. Thank you.