html - How does Google change the urls in search result page -


if search in google (e.g. stackoverflow), in search result page can see stackoverflow item result.

when hover mouse in stackoverflow item browser shows it's anchor element refers stackoverflow.com . when right click on item , click on copy link address url this .

how google it?

<a id="changeme" href="http://foo.com">click me</a> 

as mentioned in comments guess simple as:

$('#changeme').mousedown(function(){   $(this).attr('href', "http://bar.com")   }); 

http://jsfiddle.net/jpkl6/


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -