Blog
How to Use Javascript Effectively Without Hurting Your Web Site Search Engine Optimization
03/05/09
I have a love/hate relationship with javascript (my best geek statement to date). You can create some of the coolest stuff in the browser with well-written javascript. There are also thousands of available javascript plugins for websites - that's the love part. However, I also hate it because the language is case-sensitive and each browser can interpret the instructions differently (especially Internet Explorer).
Much more importantly though, a web developer must understand when to use javascript and when not to. Choose an item in this drop-down list:
So what's going on here, exactly? There's a snippet of Javascript that dynamically changes the content in an HTML layer each time you make a selection from the drop-down list. Ok, so why should you care? Well...
None of the search engine crawlers read dynamic javascript content. And they can't submit forms, such as a contact form). So the point is, my content in the HTML layer above will never be crawled by any search engine, and therefore never be indexed. Meaning, you guessed it, never showing up in any search results on Google, Yahoo, MSN, and all the rest. If you have a page on your website that uses a drop-down list to link to, or display content, you are deliberately hiding that content from search engines!
Lesson #1 regarding javascript - don't make content that is important to your web site's search engine ranking available only through javascript methods. It will never be found!
So what's an alternative to using a drop-down list to display information or link to other pages? Make sure your content can be found other ways, like a site map (that doesn't use javascript). Another method I like is the use of collapsing/expanding HTML layers. Click an item on this list:
The difference here is that the content is on the page in the HTML code; it's just hidden from view of the browser. Javascript simply shows and hides each layer when you click on its anchor tag. Since the content is always in the HTML (whether visible or not), it always gets crawled by search engines. Remember, search engines ignore javascript, and they don't care if the layer is hidden or not; they still look at the page's underlying HTML code.
If you're unsure how javascript is being used on your website, give us a call or fill out our contact form. We would be happy to evaluate the underlying code and let you know if search engines can see your content.
- Barry Koehler
Web Programming Manager
More Blog Articles
- Outsource Services to Support Business Growth - 08/31/10
- 3 Easy Changes for a Sticky Website -- Web Site Redesign Tips - 08/25/10
- Hiring writers: 5 quick ways to avoid headaches and lawsuits - 08/06/10
- Web traffic: 3 ways to attract customers to your website - 07/23/10
- How do you know if a small business web designer is up to the job? - 07/15/10
- 5 keys to choosing a reputable SEO firm - 06/11/10
- 5 Ways an iPhone App Developer Can Make Your Business Money - 05/25/10
- How is Your Web Strategy? - 03/05/10
- Patience is The Key to Web Success - 03/05/10
- The Website ROI Factor - 02/28/10
- Live Support Chat Software - 02/26/10
- Automate Your Workforce with iPhone - 02/25/10
- Mobile CRM - 02/23/10
- Wordpress for iPhone - 02/22/10
- Mobile Development - 02/19/10
- Coordinates Using the iPhone Simulator - 12/30/09
- Social Media - 12/24/09
- LINQ Likes Foreign Keys - 11/16/09
- Adding a Flickr Slide Show to Your Website - 10/07/09
- Adding a Twitter Feed to Your Site - 09/22/09
- Making Sure Your Website Is Browser Friendly - 09/11/09
- Adding your Facebook Fan Box to Your Website - 08/13/09
- Whats the big deal about BING? - 07/31/09
- Web Design Radio Interview pt 4 - 06/25/09
- Adding a Start Date and End Date to your WordPress Posts - 06/16/09
- Web Design Radio Interview pt 3 - 05/15/09
- Web Design Radio Interview pt 2 - 05/08/09
- Web Design Radio Interview pt 1 - 05/07/09
- Radio Interview - 05/04/09
- Is it Time to Add a Survey Tool to Your Website? - 04/29/09
- Key Step in Building a Website - 04/16/09
- Google Analytics Now Offers iPhone Tracking on Your Website Analytics. - 04/15/09
- Google Video to Discontinue Upload Service - 04/03/09
- LINQ to Objects - 04/01/09
- Sales in a Down Economy - 03/31/09
- Integrating The Facebook Connect Platform Into Your Website - 03/27/09
- Is it Time to Make Sure Your Website is Formatted for Higher Resolution Monitors? - 03/24/09
- Another Reason Reviewing Google Analytics Data is Important. - 03/20/09
- Client-side Reports Using the Report Viewer - 03/18/09
- Targeting the Right Destination in a Hyperlink - 03/17/09
- Is Your Website Multilingual? Should It Be? - 03/12/09
- How to Use Javascript Effectively Without Hurting Your Web Site Search Engine Optimization - 03/05/09
- Top 7 Myths of Web Development - 03/04/09
- Using LINQ - 03/02/09
- Facebook as a Business Tool - 02/27/09
- Proper Keyword Selection for SEO - 02/24/09
- My brother knows a guy who knows a guy who does websites for $500. - 02/23/09
- Maintaining High Touch in a High Tech World - 02/19/09
- Search Engine Optimization And W3C Compliant Web Pages - 02/18/09
- Reach potential clients through RSS - Part 2 - 02/18/09
- Reach potential clients through RSS - Part 1 - 02/17/09
