jquery href hover

Contrary to what you can find on the web, when trying to set the window.status when hovering over a link, you need to return false at the end of the hover function, otherwise the standard mouseover event is going to kick in overwrite your window.status

The following jQuery works

$('a').hover(function(){window.status=this.title?this.title:'';return false;},function(){window.status='';return false;})

If you return true, the window status is going to display the URL instead, which is the standard.

Your rating: None Average: 2.5 (6 votes)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
NtUrcLgzpU by Wala (not verified)
Thanks for this, great by Zoran (not verified)