Remember Me
forgot your password?

One Big Reason to Limit Your Use of JavaScript

JavaScript is used all over the internet to accomplish a wide variety of features such as hover menus, rollovers, animation, and form validation. In fact, JavaScript is used so frequently that web developers often take it for granted, without realizing that not all browsers support it.

Yes, that’s right, not all browsers support JavaScript. And if that isn’t bad enough, many web surfers actually disable JavaScript.

If you’re wondering why anyone would disable JavaScript, take a look at our list below.

Reasons Web Surfers Disable JavaScript in Their Browsers
  1. Pop-up Windows. Web developers often create annoying pop-up windows which are more irritating than useful. The best way to get rid of them is to disable JavaScript.
  2. Security. Security. Security. One of the most common considerations is security, and it is a well known fact that JavaScript can be easily exploited. (This is especially true for users browsing with Internet Explorer.) Additionally, many redirects are accomplished via JavaScript. By disabling JavaScript, you always know exactly where you are going and are less likely to be forwarded to an alternate website.
  3. Animations and Sounds. Have you ever been at work and navigated to a website which started playing loud music or sounds?! A lot of this is accomplished by JavaScript. Additionally, by disabling JavaScript, you can also get rid of many annoying animation which clutter the screen or distract you from the information you are trying to see.
  4. Annoying Restrictions. Sometimes, websites limit the actions that can be taken by visitors. For example, you have probably seen the websites which stop users from viewing the source code, saving images, or highlighting text.
Alternatives to JavaScript

Clearly, there are many good reasons an internet users would opt to disable JavaScript in their browsers. And while estimates aren’t too accurate, somewhere between 5 and 7 percent of internet users disable JavaScript. That means that at least 1 in every 20 visitors might not see your website as you intended. So it is important to ensure that your website works properly with or without JavaScript.

Fortunately, other internet technologies can accomplish most of what you would probably use JavaScript to do:

1. Hover Menus

Believe it or not, you don’t need JavaScript to create a hover menu!

Sometimes, however, you might want to create a cool effect which is only possible with JavaScript. In this case, feel free to create the JavaScript menu, but pay special attention to how the menu behaves without JavaScript. Be sure that it can still be used to navigate your website.

2. Image Rollovers

Believe it or not, this too can be accomplished by CSS by using the ‘:hover’ state to shift the position of an element or show a new element. Either way, rollovers are rarely crucial to the usability of a web page.

3. Redirection and Form Validation

Fortunately, there are alternatives for these as well. When you use JavaScript, it is always processed on the client-side, which is why users are able to modify the behavior of the web page when they turn it off. Instead, you can opt to do all of your processing on the server-side, by using a programming language. For example, our contact forms use server-side validation to ensure that a valid email address has been entered, even though this could be accomplished with JavaScript. By opting for server-side processing, your users will always be subject to certain restrictions.

Similarly, you can use a programming language to redirect users to other web pages.

4. Animation and Pop-ups

For animation, there are two alternatives: (1) create an animated gif image, or (2) use flash. Both of these methods have their drawbacks. With the animated gif image, you are limited to creating an image with a reasonable filesize. (The longer the animation or larger the image, the larger the filesize.) And finally, if you opt to use flash, you will encounter some of the same problems you encountered with [removed] Not All Visitors Enable Flash. And like the animated gif, you are likely to have some filesize issues as well.

As for pop-ups, we’re at a loss. Instead, you will have to bait your users to click on a link which would open in an external window or tab… (Let us know if you’ve found suitable alternatives.)

So if you are building a website, you are free to use JavaScript. But its should only be used on elements that are not crucial to the use of your website. And if, for some reason, JavaScript is essential to the use of an element on your page, consider supplying some alternative text explaining what the element is and that users need to turn on JavaScript to take advantage of it.

Sofia Sapojnikova

Sofia Sapojnikova Vesta Digital http://www.vestadigital.com

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Web Design Articles
  • More from Sofia Sapojnikova

7 Tips for Highly Effective Websites

By: Sofia Sapojnikova | 16/12/2009
The seven tips listed below will help you to improve your website, encourage repeat visits, and get results.

How To make Web Design Mississauga

By: Iko Kostadinov | 16/12/2009
Your website is your company's identity that will represent your business in the Internet. This is why it is important that you acquire the best web design in Mississauga as possible. Websites are used to represent your company, sell your business and create more clients for your business.

Brochure Designing – A Brand Endorsing Tool For a Company

By: neeraj ahuja | 16/12/2009
A company brochure is an advertisement material for your company that communicates company‘s message to the prospective clients.

Web templates – Life made Easy

By: Gaurav Kumar | 16/12/2009
This article explores the concept of web templates in detail along with suitable examples to demonstrate its effectiveness.

Drupal Themes – Top Themes Profiled

By: Gaurav Kumar | 16/12/2009
The article on Drupal themes is an effort to present information related to themes available in Drupal and also showcases some popular themes.

Quality Webpage Designing India

By: Gaurav Gupta | 16/12/2009
Our website designing company providing quality webpage designing in India at the cheapest price. We are offers special web design package to create creative web design in India.

Professional website Design – Taking online business a step further

By: John Tweak | 16/12/2009
Professional website design is a step ahead of custom website design because it primarily takes into consideration the company’s mission specific goals and strategic needs. A professionally designed website is an essential investment in business as it is now considered a standard component in a business and marketing strategy to tap customers surfing on the internet.

Yahoo Store Design: The Right Way Ahead For Yahoo Store Owners

By: John Tweak | 16/12/2009
Yahoo Store owners can design their stores in accordance with current online trends and meet customers’ expectations. At the same time, online merchants who wish to reconfigure their store to stay current can redesign their Yahoo Store and refurbish their online image. This article discusses the nuances of both these options by providing vital inputs to store merchants and related advice.

6 Reasons You Don’t Get Traffic From Google

By: Sofia Sapojnikova | 15/12/2009 | SEO
Traffic SinkingIf your website receives very little traffic from Google, it should be cause for concern. After all, search traffic from Google is free and can help you save lots of money by minimizing the need for paid advertising. Below, we list six different reasons why your website may not be getting traffic from Google.

University of Massachusetts reports fast growing companies are aggressively using Social Media

By: Sofia Sapojnikova | 15/12/2009 | Internet Marketing
University of Massachusetts DartmouthThe University of Massachusetts Dartmouth recently conducted one of the first statistically significant studies on the usage of social media in corporations. The study compares the adoption of social media with a list of the fastest-growing U.S. companies assembled by Inc. Magazine – a leading business magazine headquartered in New York City.

Online Spending - Spurred by Social Media - Already Tops $16 Billion this Holiday Season

By: Sofia Sapojnikova | 14/12/2009 | Sales
Online retail spending has topped $16 billion in the United States for the first 36 days of the 2009 holiday shopping season ending December 6, according to comScore, an online research firm based in Virginia. This is a 3-percent increase over the corresponding days last year. Social media has had a strong influence on purchases made by online shoppers this year.

Why Isn't My Website Being Indexed By Search Engines?

By: Sofia Sapojnikova | 14/12/2009 | SEO
At one time or another, you may have manually submitted your website to search engines without success, and wondered why your website wasn’t being indexed. And perhaps you even used a submission service, all to no avail. You are not alone. Many websites are also unable to be indexed. Fortunately, there are ways to correct your problem.

5 Unlikely Ways You Can Increase Your Internet Traffic

By: Sofia Sapojnikova | 14/12/2009 | SMO
Everyone wants to have a successful Internet website. In order to be successful you need visitors and in order to have visitors you need traffic. So how do you go about drive traffic? Type “How to increase Internet Traffic” into Google and you will get thousands of results. But we have made a little list of some ways you may not have thought of. Here are five unlikely ways to get more traffic to your website. Sure - there are many, many more. These are just a few to get you going.

Why Flash Might Not Be Good For Your Website

By: Sofia Sapojnikova | 14/12/2009 | Web Design
Below, we address some key issues that may arise by using flash in your website.

How To Find a Web Design Company That's Right For You

By: Sofia Sapojnikova | 14/12/2009 | Web Design
There are thousands of web designers out there. How do you know which one is going to be right for your company and which one will help you meet your objectives?

ALT vs. TITLE Attributes For Images in HTML

By: Sofia Sapojnikova | 14/12/2009 | Web Design
HTML TattooThe alt and title attributes, when used with images, are often the source of many questions because they seem redundant. But even more important, many wonder how the use of these attributes affect visitors and search engines?

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.45, 6, w2)