The Java Scriptorium

Writing and Erasic Status Bar Text


Description

Writes text to the status bar that remains until you delete it.

Example

Code

In the <head> section of your document:

<script language="JavaScript">
<!-- Hide
function statbar(txt) {
   window.status = txt;
}
// -->
</script>

In the <body> section of your document:

<form>
<input type="button" name="look" value="Write!" onclick="statbar('This is the status bar');">
<input type="button" name="erase" value="Erase!" onclick="statbar('');">
</form>

Return to the Java Scriptorium.