问题
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