Solved

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

Posted on 2013-06-26
3
371 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now