nofollow links in Java Script

by 3 replies
4
Hi,

I have a piece of code that has a hidden div in it with the nofollow attribute appended to a link like this:

$('body').html('');//empty body
$('body').html('<div id="fadeout">'+bodyContents+'</div>');//put contents in a div
$('body').append('<div id="popup"><img id="bg" src="http://mydomain.com/wp-content/themes/bluevibe/images/redirection_banner.jpg"/><a href="http://www.mydomain.co.uk/" rel="nofollow"><img id="clickhere" src="http://mydomain.com/wp-content/themes/bluevibe/images/click_here.gif"></a></div>');
$("#popup").center();
$( "#fadeout" ).effect("fade",{}, 3000);

Will this work? I do not want Google spiders to follow this link.

Cheers,
Seamy
#search engine optimization #java #links #nofollow #script
  • you should use lynx , and secondly if you use javascript google bot will not follow it
    • [1] reply
    • What do you mean by use lynx? Is this another language?
      • [1] reply

Next Topics on Trending Feed