Behaviors > Using the behavior actions that come with Dreamweaver > Set Text of Status Bar |
The Set Text of Status Bar action shows a message in the status bar at the bottom left of the browser window. For example, you can use this action to describe the destination of a link in the status bar instead of showing the URL associated with it. To see an example of a status message, roll your mouse over any of the navigation buttons in Dreamweaver Help. Note, however, that visitors often ignore or overlook messages in the status bar; if your message is important, consider displaying it as a pop-up message or as the text of a layer.
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()}.
To use the Set Text of Status Bar action:
1 | Select an object and open the Behaviors panel. |
2 | Click the Plus (+) button and choose Set Text > Set Text of Status Bar from the Actions pop-up menu. |
3 | In the Set Text of Status Bar dialog box, type your message in the Message field. |
Keep the message concise. The browser truncates the message if it doesn't fit in the status bar. | |
4 | Click OK. |
5 | Check that the default event is the one you want. |
If it isn't, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu. | |