A Web site may have several files all based on a common template, but some of the files need behaviors (such as button rollovers or pop-up windows) in them, and others don't. Because theHEADin template files is not editable, Dreamweaver does not allow behaviors to be added to files based on a template.
Note:This TechNote is intended for use with Dreamweaver 2 templates. If using Dreamweaver 3 or Dreamweaver 4 templates, please see Adding Behaviors to templates and documents created from templates (TechNote 14797).
While theHEADitself is not editable, it is possible to add an editableSCRIPTtag to theHEADof a template file. When a behavior is added to a file to which the template is applied, Dreamweaver automatically inserts the behavior function into this editable area.
Note:Because theHEADwasn't originally designed to be editable, Dreamweaver may try to strip out the contents of the last editable region in theHEAD. To work around this problem, just add an extra, "sacrificial" editable region.
To add an editableSCRIPTtag to theHEADof a template: