Solved

jQuery: Modify what is displayed at bottom of browser when you hover over link

Posted on 2013-06-26
3
375 Views
Last Modified: 2013-06-27
When you hover over a link, the browser shows the URL of that link at the bottom (usually at the bottom-left).  Using jQuery, how can this be modified for matching links?

$('#xyz a').each(function () {
 $(this).attr('href','xyz');
 $(this).attr('???','Hello world'); 
 // Should say "Hello World" at the bottom of the browser when you hover over the link
});

Open in new window

0
Comment
Question by:hankknight
  • 2
3 Comments
 
LVL 42

Expert Comment

by:David S.
ID: 39279987
The "window.status" property can be used to control that, however, many browsers have an option to disable that.
0
 
LVL 16

Author Comment

by:hankknight
ID: 39280017
How can I use jQuery with the "window.status" property so that it only applies to matching links?
$('p a').each(function () {
 $(this).attr('href','xyz');
 $(this).attr('window.status','Hello world'); 
});

Open in new window

0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 39280043
After all these years you still don't know what "window" is?

Try this:
$('p a').each(function () {
  $(this).attr('href','xyz').hover(function(){
    window.status='Hello world';
  }, function(){
    window.status='';
  });
});

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding a Li to a UL after a specified Li contents 2 59
Why is this panel heading creating extra space 2 52
jquery progress bar 3 44
jQuery delay animation 3 31
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question