How to change the information in browser’s status bar

I came across a question asking how to change browser’s window status information when user moves the mouse over a button on an ASP.NET web page. The solution is to use JavaScript.In the Page_Load event handler, add the following two lines of code:

Button1.Attributes.Add(“OnMouseMove”, “javascript:window.status=’Message’;”)
Button1.Attributes.Add(“OnMouseOut”, “javascript:window.status=’Done’;)

Note, the solution only works in Internet Explorer. FireFox by default disables the ability to change the status bar, because the status bar has been abused by spammers.

Leave a Reply

Notify of
Close Bitnami banner