top of page
Writer's pictureBrent D. Payne

Has link with a URL in onclick attribute

Presence of a URL within the onclick attribute of an anchor tag indicates the use of JavaScript to define the navigation behavior upon clicking that link.


Why is this important?

Such JavaScript-based navigation is not recognized by search engines, which can only follow standard hyperlink-based URLs, not those embedded within the onclick events of anchor tags.


According to Google's guidelines, search engines do not process onclick events, rendering such links non-crawlable.


What does the Optimization check?

This Optimization activates when an internal URL on a site includes an outgoing link that triggers a URL redirection via its onclick attribute.


Examples that trigger this Optimization

<a href="javascript:void(0);" onclick="window.location.href='https://example.com'">example of an onclick link</a>


Why is this Optimization marked 'Insight'?

Loud Interactive has tagged this Optimization as 'Insight' to indicate that it may not require immediate action. Instead, it serves as a point of awareness as there might be strategic reasons for making some links non-crawlable, such as actions tied to user engagement or conversions.


Since the purpose behind such links can vary, Loud Interactive acknowledges that the actual intention might be to keep these links non-discoverable by search engines.


How do you get more data from Sitebulb?

Access more detail in Sitebulb by hitting the Optimization Details command. This will present a dedicated view with more comprehensive information specific to each URL and its hints.


Further Reading

6 views
bottom of page