2

I am considering replacing links with such as:

<input type="button" onclick ="window.location.href('http://foo.com')" value="Click me!" />

There was a suggestion that search engines could not follow this kind of link. Does anyone have any knowledge to confirm this.

thanks,

TonyG
  • 1,645
  • 2
  • 14
  • 17
  • As far as I know search engines don't follow buttons. For example, what would they do when crawling an loginform or contactform? They only follow hyperlinks. Judging by your provided example, why not create an hyperlink. Point that to foo.com and style it like an button with css? – Rob May 24 '11 at 08:15

2 Answers2

1

I would say that would be horrible for SEO purposes...

  • A button should submit a form, not take you to a new resource.
  • Bots have limited knowledge of JavaScript.
  • Click me! is terrible link text, unless you want to rank for click and me.
alex
  • 479,566
  • 201
  • 878
  • 984
1

According to pitstopmedia.com,

<button>Some text here</button> – some text goes here will be indexed by search engines.

s.d
  • 4,017
  • 5
  • 35
  • 65