You are reading a single comment by @slippers and its replies. Click here to read the full conversation.
  • If you've got a good example of this code I'll look into it.

    The window.status has long been deprecated for security reasons, and Google seem to do it via lots of obfuscated JavaScript.

    What I don't want to do is put something in that is half-baked and proves to physically break links that work today.

  • Looking into it properly, it looks like Facebook do exactly this to protect users from spam/bad links. Link

    They describe simply doing this (if you're using jQuery):

    function linkShim($link) {
    
    	var dest = $link.data('href'),
    		via = $link.attr('href');
    
    	$link.on('mouseover', function() {
    
    		this.href = dest;
    
    	}).on('mousedown', function() {
    
    		this.href = via;
    
    	});
    }
    
    $('a.external').each(function() {
    	linkShim($(this));
    });
    

    Although, what you say about Google's penalisation for it sounds most likely correct — I can't find any decent/official word on it anywhere?

    Hmmm...

About

Avatar for slippers @slippers started