window.status

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

							window.status = string
						

Description

The status property of the Window object allows you to specify the message that is displayed in the status bar of the browser. Note that in JavaScript 1.1, this property was tainted. See Chapter 1 for more information on JavaScript security and data tainting.

Note

When setting the Window.status property, be sure that your function returns true. This also applies when setting the property within the body of an HTML tag.

Example

Listing 7.585 shows how you can set the status in the Status Bar by rolling over a link.

Listing 7.585 Setting the Status of a Page
 <a href="http://www.purejavascript.com/book" onMouseOver="window.status='Please ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.