[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

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

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
hankknight
Asked:
hankknight
  • 2
1 Solution
 
David S.Commented:
The "window.status" property can be used to control that, however, many browsers have an option to disable that.
0
 
hankknightAuthor Commented:
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
 
David S.Commented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now