views:

1958

answers:

8

Hi,

Currently I am using this

OnMouseOver="window.status='';return true;"

for

<asp:LinkButton ID="lnkCategory" runat="server" onMouseOver="window.status='' ; return true;" onMouseOut="window.status='';" oncontextmenu="window.status=''; return true;">

This works fine in IE but not in firefox.

How can I able to change this.

I want to disable the status bar messages for the linkbutton.

+4  A: 

Disabling the status bar message is evil. Don't do it.

karim79
This is not a site for discussing moral issues, that can be easily done at of the tons of social sites out there.
TFM
@TFM - I'm aware of that, but disabling a status bar message is along the lines of covering it up with a horizonal scrolling message marquee intended to cover up where the page links are actually taking the visitor, and should not be humored in any way.
karim79
+2  A: 

By default, this is turned off in Firefox. You'd have to force your users to change a config setting to make this work.

One alternative you could try is swapping out the value href with an empty string on hover, then navigating the user to the link's href on click. This is considered a bad thing to do though. It's not bulletproof. Users could still tab to the link or do other things that should trigger a link's default behavior.

As karim79 said though, don't do it.

Dan Herbert
+2  A: 

Disabling an expected browser behaviour is usually a bad idea. consider if you really need to do this.

Jonathan Fingland
+1  A: 

I would caution against this - as others have posted it's expected behaviour.

On a personal note I use the status bar message to check that the link is really going where the page claims. If I found this on a page I'd be highly suspicious of the motives behind the site.

ChrisF
+1  A: 
TFM
A: 

This is what I was searching for. Bad for Firefox that you can not change status bar. I was wondering whow to override it ...

Optimizacija sajta
A: 

Some folks like to see messages on their Status Bar. Some don't. Some programmers cover all the bases by including Tool Tips and Status Bar messages in their A tags. Some don't. Some abuse the daylights out of it (eg, scrolling blinkers) which is likely why FF resorted to putting it under User control; where it should be.

Ethical issues aside, don't worry about it. The link text should be clear enough; the additional text in the Tool Tips and Status Bar message should only expand upon that.

For example, if the link text reads 'Home' then the Tool Tip and Status Bar (as you like) should read something like 'Click here to return to Home page.'

The side benefit is that some 'screen readers' for the sight impaired are able to use the additional text in the A tag (although once again everyone seems to have gone their own way on this so, again, covering all the bases seems prudent).

jim
A: 

My Script for Date And Time To Show In status Bar was not Working... great tip... thnx dude

Muneeb