HTML and Code design insider tricks
Setting the Browser Status Bar to display a message
Image used - NONE
See-How its done
This will only work for IE 5 (or higher) as it uses Java to display the message in the Browser Status Bar. First the message to be displayed is stored in the variable "statusbarmessage" which is used as the parameter by the "window.status" in the function statustype. The activation is from within the BODY tag using the "onload" event activated everytime the page is displayed. To change the text displayed, simply substitute your own for the text "Status Bar message text generated by this page".
The same effect can be achieved by simply by deleting the variable (var statusbarmessage) and putting the parameter (text to be displayed) within quotes straight into the window.status.
E.g: window.status="Status Bar message text generated by this page"
However, is not good programing practice as future requirements could not be incorporated without having to re-write the code.
Well that's the theory - try clicking on the example below and See-How it works.
HTML CODE - Setting the Browser Status Bar to display text
| <html<>> <head> <title>Status Bar Text1</title> <script language="JavaScript"> <!-- var statusbarmessage="Status Bar message text generated by this page"; function statustype() { window.status = statusbarmessage; } --> </script> </head> <body onload="statustype()"> </body> </html> |
| see-example |