Our experiment
Rather than using HREF in an “A” tag to create a link, we used “
The code is the following:
<div onclick="window.open('/surpriXX.html','_self');"><b>This is a javascript link click on it</b>
</div>
Then, We looked into Google to see if we could find the page by doing: site:sitecozy.com surprise. The page has not been crawled. This is the proof Google does not crawl Javascript links.
Googlebot does not crawl Javascript and it was confirmed by Google. Google only crawls
While this page has been crawled, the page behind the javascript link hasn’t been crawled.
