Search code examples
javascriptweb-crawlersearch-engine-bots

Do search engine bots - crawlers - spiders - etc. have javascript in them?


I don't know how search engine bots work, database entries for robots on my browser records are e.g. Googlebot, msnbot, BingBot, etc.

So I don't know if they have javascript enabled or anything.

Why I want to know if they have javascript enabled? Because I want to require Javascript on my site. What I did to do this is that I have an 'overlay' div with a short message that I set to 'display:none' with javascript on page load. So if there is no Javascript the overlay won't dissapear and nothing in the site is clickable or anything.

So can robots still crawl my site even with the Javascript requirement thing I made? Because I want google and other good bots to be able to crawl my site.


Solution

  • Search robots can and will crawl your site, but they do not understand JavaScript, so they will ignore any JS. They should however have no issue crawling the page you described.