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. Visitors often ignore or
overlook messages in the status bar (and not all browsers provide full support for setting the text
of 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 (
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:
Select an object and open the Behaviors panel.
1
Click the Plus (+) button and select Set Text > Set Text of Status Bar from the Actions
2
pop-up menu.
In the Set Text of Status Bar dialog box, type your message in the Message text box.
3
Keep the message concise. The browser truncates the message if it doesn't fit in the status bar.
Click OK.
4
Check that the default event is the one you want.
5
If it isn't, select 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.
Set Text of Text Field
The Set Text of Text Field action replaces the content of a form's text field with the content
you specify.
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 (
it with a backslash (
Example
The URL for this page is {window.location}, and today is {new Date()}.
To create a named text field:
Select Insert > Form Objects > Text Field.
1
If Dreamweaver prompts you to add a form tag, click Yes. For more information, see
Forms" on page
In the Property inspector, type a name for the text field. Make sure the name is unique on the
2
page (don't use the same name for multiple elements on the same page, even if they're in
different forms).
390
Chapter 18: Using JavaScript Behaviors
).
\{
).
\{
607.
). To display a brace, precede
{}
). To display a brace, precede
{}
"Creating
Need help?
Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?
Questions and answers