Things You'll Need:
- Mac ZipIt
- Macromedia Dreamweaver
- WinZip
-
Step 1
If you have a JavaScript you want to use, open the file where the JavaScript is located. If you're downloading a Dreamweaver extension file, use a file decompression program, such as WinZip or ZipIt, to extract the file.
-
Step 2
Locate and open the folder where the Dreamweaver program is installed (such as Programs). Find and open the Configuration folder, then the Actions folder.
-
Step 3
Paste or extract the JavaScript file into the Actions folder.
-
Step 4
Restart the Dreamweaver program and proceed to the next section.
-
Step 1
Start the Dreamweaver program and open the page that the JavaScript or behavior will be added to.
-
Step 2
Open the Window menu and choose Behaviors, or press the F8 button. This opens the Behavior Inspector.
-
Step 3
Select the text or object that the behavior or JavaScript will be attached to. In the Behavior Inspector, choose the browser you are designing the page for. (Some behaviors can only be used with certain browsers.)
-
Step 4
Click on the Plus sign and choose the imported JavaScript or a Dreamweaver behavior (see Tips for more information about the behaviors). Dimmed behaviors cannot be used on your page; to get more behavior options, choose a more recent browser, such as Internet Explorer 5.
-
Step 5
Select the parameters for the behavior (any values the behavior needs to run) and click OK.
-
Step 6
Choose the event that triggers the behavior by clicking on the arrow button next to the behavior and selecting the desired event.
-
Step 7
Save the page, then test it by selecting Preview in Browser from the File menu and performing the event (such as double-clicking).







