Can a search engine follow <button> or <input> elements?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 00:47:46

问题


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,


回答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.



回答2:


According to pitstopmedia.com,

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




回答3:


See Does Google follow Buttons/Inputs



来源:https://stackoverflow.com/questions/6107497/can-a-search-engine-follow-button-or-input-elements

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!