Working with Status Bar Messages

By: aathishankaran Emailed: 1598 times Printed: 2044 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

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 already opened. 

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 status property. 

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: 

            window.defaultStatus = “Welcome to the large URL page." 

Second, when the user passes over the "Go" link, its onMouseOver event handler calls the following function: 

function changeStatus()

{

window.status == "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: 

function changeDefaultStatus()

{

window.defaultStatus = window.document.statusForm.messageList.

     }


JSP Home | All JSP Tutorials | Latest JSP Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by aathishankaran
Web Security Issues
The Web User's Perspective
Server-side plug-Ins
The best way to avoid security vulnerabilities with new server
JavaScript Security
Window Object
Working with Status Bar Messages
Retrieving a Portion of a String
Referencing Windows
Math Object
Frame Object
Document Object
Closing Windows
Built-in Object in Javascript
Textarea Object

More Tutorials in JSP
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: `java.net.BindException: Permission denied <null>:80
JSP Alert Example
JSP CheckBox Example
Uploading an Image to a Database using JSP
Uploading a file to a server using JSP
A JSP page that gets properties from a bean
The page Directive in JSP
The taglib, tag, include, attribute and the variable Directive in JSP
Declarations in JSP
Scriptlets and Expressions in JSP
Tag Libraries in JSP
The Request Object in JSP
The Response Object in JSP
The Out Object in JSP
The Session Object in JSP

More Latest News
Most Viewed Articles (in JSP )
JSP Example to connect to MS SQL database and retrieve records
JSP CheckBox Example
What are the different scopes in JSP?
JSP Alert Example
JSP Program for display Date
Comparison operators in JSP
Sending Email using JSP
Uploading a file to a server using JSP
Embedding java codes in jsp sciptlets
Example Using Initialization Parameters
Querying Data with the JSTL in JSP
Uploading an Image to a Database using JSP
A simple program using EL in JSP
The Request Object in JSP
Debugging Servlets
Most Emailed Articles (in JSP)
Sessions in JSP
Enable/Disable Scripting Elements in JSP
Embedding java codes in jsp sciptlets
A Servlet That Generates HTML
Example Using Initialization Parameters
Debugging Servlets
Servlets
The Advantages of Servlets Over “Traditional” CGI
Textarea Object
The TryCatchFinally Interface in JSP
JSP Tags for SQL to connect to a database
JSP Example to connect to MS SQL database using Tomcat Connection Pool
What are the different scopes in JSP?
Writing your first JSP page
Using a DataSource from WebLogic in a JSP