nofollow links in Java Script

3 replies
  • SEO
  • |
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
#java #links #nofollow #script
  • Profile picture of the author kulwant2singh
    you should use lynx , and secondly if you use javascript google bot will not follow it
    {{ DiscussionBoard.errors[7744961].message }}
    • Profile picture of the author seamy82
      What do you mean by use lynx? Is this another language?
      {{ DiscussionBoard.errors[7767931].message }}
      • Profile picture of the author yukon
        Banned
        Originally Posted by seamy82 View Post

        What do you mean by use lynx? Is this another language?
        It's a text only browser, some people use it for simulating the web page like a Google Cache (text version).

        I use this Firefox plugin If there's no live Google Cache (text version) page available. Simply turn off all images, javascript, CSS & it is a very close Google Cache (text version) simulation. The page doesn't even have to be online to simulate, for tweaking.
        {{ DiscussionBoard.errors[7768876].message }}

Trending Topics