The Tests
First we need a control link using no tricks. Then I think a new test of a nofollow link to see if it gets crawled and/or shown in the Google Search Console.
Now to JavaScript. How about a changing link that is different before and after JavaScript. Or a simple onclick redirect link, a function onclick redirect link and a dynamic onclick redirect.
Lets play with a combination. A nofollow by JavaScript link.
Maybe more to come.
Type | Description | Status |
---|---|---|
follow | Simple link | Found |
nofollow | Link with a nofollow | Not Found |
nofollowjs | Link with a nofollow added by JavaScript (Exists on render) | Found |
beforejs | Link existed before changed by JavaScript (Exists on prerender) | Found |
afterjs | Link added by JavaScript (Exists on render) | Found |
simpleOnclickRedirect | Span with an onclick using window.location | Found |
functionOnclickRedirect | Span with an onclick calling a function that uses window.location | Found |
dynamicOnclickRedirect | Span with an onclick added via jQuery calling a function that uses window.location | Found |
Initially the JavaScript based links were not found. The experiment started before Google move to the latest Chrome. Google has also crawled the AMP versions even though these URLs are canonicalised out.