Adobe Extending Dreamweaver CS4 User Manual
Page 372

366
EXTENDING DREAMWEAVER CS4
C-level extensibility
function objectTag() {
// Return the html tag that should be inserted
alert(Sample.computeSum(2,2));
return "
";
}
5
Save the file and restart Dreamweaver.
To execute the
computeSum()
function, select Insert > HTML > Horizontal Rule.
A dialog box that contains the number 4 (the result of computing the sum of 2 plus 2) appears.
This manual is related to the following products: