Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

"Button" is followed by google and considered for serp?

         

ortorob

3:36 pm on Jun 28, 2015 (gmt 0)

10+ Year Member



Hello

consider this link

<button onclick="window.location.href='http://www.newsite.com">Let's go to the newsite.com</button>

will this link be followed by google and the related backlink considered for serp scoring?

Thanks

seoskunk

11:31 pm on Jun 28, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Google reads javascript so the link will count to your site but the backlinks won't pass over.

Johan007

1:11 pm on Jun 29, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



"Button" is followed by google and considered for serp?

No not really as part of form submission - unless possibly like in your "muddy" example you have attached an onclick with an absolute URL. But <button>'s are really for forms and Google will know this and may avoid following IMO.

Google reads javascript so the link will count to your site but the backlinks won't pass over.
Supposedly according to Google, but can you prove this on a both a absolute URL and a relative URL? My guesstimate is only the absolute will get indexed if at all. If the JavaScript was contained externally instead inline may also hinder following.

The answer to the question will most likely be nobody knows if it currently does get indexed/followed, but I would make sure you are prepared for the future possibility! (or the current impossibility!).