Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
With the development of Ajax technology, JavaScript is a kind of client-based language has been rejuvenated, but also a lot of professional JavaScript masters appear. But in SEO, unfortunately, the search engine is not very good to crawl JavaScript code, accurately said it is not willing to crawl JavaScript things, of course, there are experiments to prove that it can be caught. So that JavaScript is really in the SEO is useless, the Elves think not, here Elves talk about the use of JavaScript based on SEO principles.
JavaScript Invoke method
JavaScript can, in principle, be used without any effort, if it is based on the user experience, for example, to use Ajax style, try to put it in an external file call. This is the following:
Where # is the JS file you want to call. If you put JavaScript code in the body like this, it can cause code snippets to increase and not be concise. If you want to use it, note that it is written as follows. Remove the Language property, this property is completely redundant, in addition to increasing the length of the code is useless.
Document.Write in the use of SEO
Document.Write that is, in JavaScript to achieve output, but also include output HTML text, here to note that the text must not be placed in the document.write, the inside of the things search engine is not crawled.
But it's not that you don't have to document.write. The use of JavaScript output page similar parts, can effectively reduce the site page similarity, especially some of the text content relatively small sites, such as video station or map station, because the video and map search engines are not visible, so next to a lot of the same factors will cause a similar page of suspicion, At this point, you can consider using the document.write output of the similar parts of each page, which can effectively reduce the page similarity. But also note that don't put the internal links in the page into JavaScript.
Widow.open in the use of SEO principles
window.open () method is mainly used to open new windows, as well as history objects, mainly used to back forward, such as "back to the previous page", this method of clicking the connection to the user has undoubtedly brought convenience, but this link can not actually be identified by the search engine, So the effective link must avoid this method. Unless the link is completely based on the user and does not require search engine crawling links, such as links in the editor, and some feature links in the comments, these links cannot use the traditional a point, and you can consider using the Window.Open method.
Transferred from: Shanghai SEO Research Institute http://www.lijinglin.com