First, Dreamweaver CS5 pop-up information behavior
1. Select a page element or object.
2. Open the Behavior panel.
3. Click the "Add behavior (+)" button, in the Pop-up drop-down menu, select "pop-up message" command. As shown in the following illustration:
4. Open the Pop-up message dialog box, as shown in the following illustration:
Message: Enter the message you want to display.
Tip: You can also enter any JavaScript function, property, variable, or expression in the message box. If you enter a JavaScript expression, enclose it in braces ({}). If you want to display curly braces, precede the backslash escape characters ({and}).
(1) Use JavaScript expression example one:
The URL address for this page is: {window.location}
Enter the code into the message text box.
(2) Use JavaScript expression example two:
Today is: {New Date ()}
Enter the code into the message text box.
5. Click "OK" button.
6. See if the attached event is a required event. If it is not the event you want, you can change the event.
7. See if the behavior parameters are appropriate. You can also modify the behavior parameters if they are not appropriate.