We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

« XUL Reference home
statustext
Type: string
Used to set the text that appears on the status bar when the user moves the mouse over the element. Mozilla doesn't adjust the status bar automatically however. This attribute serves only as a place to keep the text. In Firefox, this text is automatically placed in the statusbar for menuitems on the menu bar.

Example

<!-- sets the status message when mouse is over buttons -->
<button label="Connect" statustext="Connect to remote server" 
      onmouseover="setStatusMessage(this)" onmouseout="clearStatusMessage()"/>
<button label="Ping" statustext="Ping the server" 
      onmouseover="setStatusMessage(this)" onmouseout="clearStatusMessage()"/>

<statusbar>
  <statusbarpanel id="myStatusPanel" label="" flex="1"/>
  <spacer flex="1"/>
</statusbar>

<script>
function setStatusMessage(obj){
  document.getElementById('myStatusPanel').label = obj.getAttribute('statustext');
}
function clearStatusMessage(obj){
  document.getElementById('myStatusPanel').label = '';
}
</script>

See also

statusbar and statusbarpanel

Document Tags and Contributors

Contributors to this page: SphinxKnight, Sheppy, trevorh, Marsf, Mgjbot, Ptak82, Pmash, Dria
Last updated by: SphinxKnight,