Can I add a piece of code to every page in a directory automatically?

In Dreamweaver, I can select some code and replace it with something else directory-wide by choosing the Find In: Folder... option in the Find and Replace box.  Awesome.

Now I need to add a reference to a JavaScript file to every page in my site.  How can I do this?  The line of code is:

<script type="text/javascript" src="/js/offsiteAlerter.js"></script>

It just needs to be anywhere in the <head> of the document.  Is there a way to find the <head> of every page and add it?

Also, I do not have a site defined in Dreamweaver.
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.

why not replace:
<your script reference>
Using dw or and text replace application


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
mrcoulsonAuthor Commented:
I guess I wanted to keep all of the script tags in one place.  I mean, I'd rather settle for that solution than pasting it manually in a few hundred places tonight.
Jason C. LevineDon't talk to me.Commented:

Don't let the perfect stand in the way of the good.  glum's answer is how I would do it...
mrcoulsonAuthor Commented:
Well, heck!  You're a genius, so it must be right!

But it's good advice.  I guess I just want to avoid our new site becoming a jumble of unrelated code like the current site is; however, I ain't makin' no stinkin' overtime here tonight and may as well shorten one task if I can, right??

Thanks, guys!
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
Web Development Software

From novice to tech pro — start learning today.