Moving to other pages in my site using javascript not regular anchors

- 1 answer

Ad

I disabled the 'a' anchors at my site, and instead, I created js function that moves the visitor by the window.location.href function, for a purpose of-course.
Does this way harm my SEO ranking, or lets say:

  • Does this prevent google from crawling my site currectly?
  • Does google know that a js is controlling the link?

Thanks

Ad

Answer

Ad

The google bot is able to render your javascript if you don't block the resource. Searchengineland made a test, if the google bot can crawl different type of links.

Google Bot Link Crawling Test

Ad
source: stackoverflow.com
Ad