Martin Splitt, Developer Advocate at Google, clarifies how Googlebot uses links to find pages on the web and how JavaScript may be used jointly with links without causing problems. The correct way to generate links: Use the HTML tag with the destination URL in the href attribute. For example, hillwebcreations.com link. You can also append JavaScript to a link, permitting you to upgrade its functionality. One example of this might be when a person clicks on a mobile hamburger menu within a web pages —JavaScript is useful to intercept the href and make the hidden hamburger menu visible. The href attribute should be maintained. Link can work if your JavaScript is also functioning properly, but some people block JS and then the URL won’t work. The Google Crawler only accesses link content that has href attributes and if there’s a bug, consumers also can’t access the content the JavaScript is pointing to. Fragment identifiers are not used by search crawlers. Fragment identifiers are identified by a “#” symbol that is usually attached after the domain and main page. It leads to subsections within the page rather than to a different page. For example, site.com/maintopic#subsection would help the reader navigate to a specific sub topic on the page site.com/details.