Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web
Expertise: Beginner
Jan 13, 2000

Display Status Bar Message in IE Using Status and DefaultStatus

Browsers Targeted: Internet Explorer 3+

You can display a message in the status bar of Internet Explorer using the window.status object. This message is highly transient and should be used primarily for short help and status messages. This message is also used by HTML anchor tags and similar fields by the browser itself. A similar property window.defaultStatus sets the status property for those instances where a status message isn't otherwise defined. If you set the status message to the blank string, it will attempt to use the defaultStatus string in its place.

<script language="Javascript">
window.defaultStatus="This is the default status message."
<div onmouseover="window.status='Rolling over text'" 
onmouseout="window.status=''">Roll over this text to see 
the effects of various status messages.</div>
Roll over this text to see the effects of various status messages.
Kurt Cagle
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date