Dreamweaver CS4 | ![]() |
Dreamweaver CS4 Resources |
Apply the Popup Message behaviorThe 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.
|