By: aathishankaran Viewed: 706 times Printer Friendly Format
The status bar of a browser can be an important means of
communicating with the user. You can use two properties of the window object
default Status and status-to control the text that is displayed.
Generally have two ways to use the status bar.
First, you can display a default message on the status bar.
The user sees this message without performing any action. You can display a
default message using the default Status property. The default Status property
can be set at any time-either upon loading the window or while the window is
Second, you can display a temporary message that overrides
the default text. In practice, this message usually appears when a user performs
an event, such as moving a mouse over a jump. You can set this message using the
The code behind this page shows three actions that you code
to change the status bar message.
First, a default message is set when the window opens using
the following code:
= “Welcome to the large URL page."
Second, when the user passes over the "Go" link,
its onMouseOver event handler calls the following function:
== "Click me to go to the JAVA-SAMPLES home page. "
Third, to change the text of the default status message,
the user can select a different message from the select object. When the Change
button's onClick event handler is triggered, it executes the following function:
Most Viewed Articles (in JSP )
Latest Articles (in JSP)
Comment on this tutorial
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews