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

0 views0 comments

Recent Posts

See All

The skip-link target should exist and be focusable

At Loud Interactive, we're committed to ensuring that digital accessibility is at the forefront of website design and development. During our SEO audits, we look for and attempt to identify an area of

Timed meta refresh must not exist

At Loud Interactive, we regularly perform a SEO audits. We often stumble upon an important issue that could significantly impact user experience and accessibility on websites. We're talking about the

bottom of page