Javascript and SEO
kery | Jul 31, 2008 | Comments 0
JavaScript is a programming language that allows web designers to create dynamic content. However, it’s also not necessarily SEO-friendly. In fact, crawlers or robots can not follow javaScript and if the sites are rich of javascript , then it often completely halts a crawler from indexing a web site, and when that happens the result is lower search engine rankings or complete exclusion from ranking.
To overcome this, many web designers externalize any JavaScript that’s included on the web site.
Externalizing the JavaScript creates a situation where it is actually run from an external location, such as a file on your web server. To externalize your JavaScript:
1. Copy the code, beginning at the starting tags, and paste it into a Notepad file.
2. Save the Notepad file as filename.js.
3. Upload the file to your web server.
4. Create a reference on your web page to the external JavaScript code. The reference
should be placed where the JavaScript will appear and might look like this:
<script language=”JavaScript” type=”text/javascript” src=”filename.js”></script>
This is just one of the solutions you can use to prevent JavaScript from becoming a problem for your SEO efforts. There are many others, and depending on your needs you should explore some of those.
Filed Under: seo • web programming
About the Author:
เราเริ่มต้นมาจากเว็บเล็กๆ thaihealth.net แต่ทรงพลังด้วยความมุ่งมั่น และระบบที่ดีเยี่ยมของโฮสติ้ง dochost ทำให้เราขึ้นมาอยู่แถวหน้าของวงการ เว็บสุขภาพ Top 1-3ทุกปี และด้วยวิสัยทัศน์ เราจึงเปิดบริการ search engine optimization นอกเหนือจาก web design และ hosting
SEO คืออะไร คือการปรับแต่งเว็บและเนื้อหาให้ถูกต้อง และเพื่อให้ผลการค้นหาอยู่ในอันดับดีที่สุดในเว็บไซต์การค้นหา เช่น google ,yahoo และ Bing ทำไมหรือ? เพราะมีผลการวิจัยพบว่า ลูกค้าจะเลือกเว็บในอันดับ 1-3 ในผลการค้นหาเป็นจำนวนถึงกว่า 70%
