Strategic SEO services
that produce results

searchengineoptimisation.com will take your
results one way. Up.

Search Engines and JavaScript

JavaScript is a very powerful web language and is used by virtually every website you view in some shape or form. There are infinite ways JavaScript can be used, from simple scripts like showing a clock to complex scripts like AJAX searching, page updating and even small games, etc.

Unfortunately there is a downside to using JavaScript on your website; Google and all of the other search engines can’t read it. The most they will read from JavaScript is anything inside a document.write() tag, but even that is not guaranteed. The reason behind this is it normally requires a web browser to parse the code and output its results, but the robots are already very sophisticated and adding such functionality would prove quite difficult.

Some things are OK to use JavaScript with however, here is a short list:

  • Clock/Date Display
  • Analytics Codes (search engine robots don’t need to trigger these, doing so might produce false data)
  • Text Editor Boxes (as these don’t need indexing)
  • … Plus anything else that doesn’t need indexing.

The things you shouldn’t use JavaScript on are:

  • Content
  • Navigation Menus (you can make CSS menus very easily)
  • Tab Systems (unless the content is always displayed in the source)
  • Linking
  • … Plus anything else you want indexing.

So to summarise, anything you want to be indexed and available to search for in the search engines you should not create using JavaScript. Anything you don’t care about getting indexed, you can feel free to use JavaScript.

You should continue to bear in mind that search engines are getting smarter every day and soon they might pick up on this JavaScript, but until that time you should give the robots the best chance possible at indexing your content by making it available on the page as normal text.



This entry was posted on Thursday, August 19th, 2010 at 11:58 am. You can follow any responses to this entry through the RSS feed.

About the author:

Posted by Andy.

Link to us

If you want to link to this blog, copy and paste the following HTML code to your website.

Leave a Reply


Get In Touch

Get in touch today for Free SEO Analysis...


Blog Categories

SEO Proposal & Quote

Enter your details below for a no obligation
SEO Proposal and Quote!

Our Twitter Feed


Follow us on Facebook

Email Sign-Up

Enter your details to receive SEO industry tips & news by email.

Client Login

Should you worry about Facebook search?

Posted on: 16/05 in On Page SEO

Many social media sites have a search component. This makes them a viable avenue to pursue during website optimisation. When it comes to soc...more.

Is commenting on blogs worth it?

Posted on: 11/05 in SEO Link Building

If you're running a blog, a website and a business, you're not going to have much time on your hands. So, what happens when your SEO company...more.

Do you spend too much time tweeting?

Posted on: 09/05 in SEO Strategy

A question that concerns any social media business user is how much time social media marketing, SMM, should take up. When it comes to Twitt...more.

Communicate with Video

Posted on: 30/12 in Online Reputation Management

There are a growing number of website owners that are using video as a means of communication on their sites. Using video can be an effectiv...more.

Ways to Promote Your Blog

Posted on: 27/12 in SEO Services

If you have an online business then setting up a blog on your website can help your SEO efforts no end. It can be a great medium for allowin...more.

Three Ways You Can Allow Your Blog to Self Destruct

Posted on: 24/12 in Online Reputation Management

If you want to create a successful group blog as part of your search engine optimisation then you’ll need to invest some blood, sweat ...more.

XML Sitemap | Sitemap | © | Copyright 2009-2010 SearchEngineOptimisation.co.uk | Blog RSS Feed | Article RSS Feed | Video Sitemap