Joseph W. Lowery
"Dreamweaver CS3 Bible"
The way around this minor limitation is to first locate the sole tag in the document. You can
accomplish this task in two lines of JavaScript code:
theDom = dreamweaver.getDocumentDOM(???document???);
theHeadNode = theDom.getElementsByTagName(???HEAD???);
1023
Customizing Dreamweaver 33
Now the script variable needs to be set. Whenever Dreamweaver encounters a closing tag in a
JavaScript function, the tag is flagged because it seems to be missing a mate. To avoid this problem, split the
tag into two concatenated strings, as follows:
theScript = ???