Dreamweaver

Apply the Popup Message behavior

The Popup Message behavior displays a JavaScript alert with the message you specify. Because JavaScript alerts have only one button (OK), use this behavior to give the user information rather than to present a choice.

You can embed any valid JavaScript function call, property, global variable, or other expression in the text. To embed a JavaScript expression, place it inside braces ({}). To display a brace, precede it with a backslash (\{).

Example:

The URL for this page is {window.location}, and today is {new Date()}.
Note: The browser controls the appearance of the alert. If you want more control over the appearance, consider using the Open Browser Window behavior.
  1. Select an object and choose Popup Message from the Actions menu of the Behaviors panel.
  2. Enter your message in the Message box.
  3. Click OK and verify that the default event is correct. If not, select another event or change the target browser in the Show Events For submenu.