inserting .js file in multiple pages

message from fatalman on 19 Jul 2004
Hi, maybe this is very easy, but I could not find an answer to this question
anywhere. Your help is appreciated.

I want to include a .js (javascript) file in about 250+ pages. How do I
automate this process using dreamweaver
so that I do not have to manually do it.

thanx in advance
 
terry replied to fatalman on 19 Jul 2004
Assuming you're not using a template,

Use EDIT
Find and Replace
Configure to Find in [Entire current local site]

and then something like

Find </head>
Replace with <script type="text/javascript"
src="scripts/myscript.js"></script>
</head>

HTH

Terry
 

Archived message: inserting .js file in multiple pages (Macromedia Dreamweaver)