defaultStatus property (window)
Sets or returns the default message in the status bar.
The status bar is used by the browser to display additional information. For example, if the mouse is over an anchor element, the browser displays the destination URL of the anchor element in the status bar. When no additional information needs to be displayed, the status bar contains the default message.
- With the defaultStatus property the value of the default message can be modified.
- To modify the currently displayed message in the status bar, use the window.status property.
Note that in Firefox, changing the text in the status bar is not allowed by default, the dom.disable_window_status_change setting (you can find it on the about:config page) must be set to false by the user to allow scripts to change it.
You can find the related objects in the Supported by objects section below.
This property is read/write.
String that specifies or retrieves the default message.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the defaultStatus property:
Did you find this example helpful?
User Contributed Comments