Status Bar Writer
Context-sensitive help. This script demonstrates how to update a status display area when the user hovers over different links or buttons.
Status: Ready
Copy the Script
<script>
function setMsg(txt) {
var el = document.getElementById("statusBox");
if(txt == '') el.innerText = 'Ready';
else el.innerText = txt;
}
</script>
<a href="#" onmouseover="setMsg('Go Home')" onmouseout="setMsg('')">Home</a>
<div id="statusBox">Ready</div>
Frequently Asked Questions
It was traditionally used to describe links when a user hovered over them (e.g., displaying 'Go to Home Page' instead of 'index.html').
Yes. You can use `onmouseover='window.status="Message"'` on anchor tags, though modern browsers usually ignore it for security.
Yes! The concept is exactly the same as a custom tooltip. Instead of writing to `window.status`, you write to a `div` element floating near the mouse.