top of page
  • Writer's pictureBrent 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=''">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


Recent Posts

See All

ClubReq Gets A Link (Because They Asked)

I am a mentor for Techstars and have been for over 10 years. In those ten years I have mentioned to startups to ask ANYONE and everyone that they meet to link to their site. Yet, in all those times on


bottom of page