Learning While Aging

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x