Javascript Reference - Window defaultStatus Property








The defaultStatus property sets or gets the default text in the status bar.

Browser Support

The defaultStatus property is only supported in Opera.

defaultStatus Yes Yes Yes Yes Yes

Syntax

window.defaultStatus

Return Value

The default text displayed in the status bar.

Example

The following code shows how to set a default text in the status bar.

<!DOCTYPE html>
<html>
<body>
<script>
window.defaultStatus = "This is the default text in the status bar!!";
</script>
</body>
</html>

Click to view the demo