How to reference external javascript file on apache server

Alas, our coder has disappeared into the wilds of the Northwest somewhere! We don't really know javascript and are learning it on the fly.

We have an external javascript file on our website, but the html files don't seem to be referencing it. The website is hosted on a godaddy Apache server with a dedicated IP with  shared hosting  and running Linux.

The javascript file is in a subfolder "cgi-biin" of our website on the server. How do we set up a relative path to the javascript file on the Apache server--i.e., how do we reference the root of OUR website on the server?

For example, if our directory structure on the server is
      [server stuff]/our website root directory/cgi-bin/foldercheck/javascript.js
how would we reference javascript.js in the htm files?

And, as an aside, which is the better format for javascript files--js or txt?

Thanks so much. We really appreciate the help.

We hope your holidays have been good and continue so. We send you our best wishes.

Elizabeth Bakerexe asstAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

u mean to day how to use ur javascript file.
then of javascript/javascript.js

path of javascript => folder inside ur website root directory

in html u have to give as

 <script type="text/javascript" src=""></script>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Elizabeth Bakerexe asstAuthor Commented:
Worked! Thanks so much.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.