eHow launches Android app: Get the best of eHow on the go.

How To

How to Handle Older Browsers With Javascript

Contributor
By eHow Contributing Writer
(2 Ratings)

Older web browsers are not equipped to handle standard Javascript. The 1 and 2 versions will likely display your full Javascript code instead of performing the Javascript you want. If you don't want your code displayed for anyone still using an older browser, there is a simple step you can take to get around it.

From Quick Guide: Use Browsers
Difficulty: Challenging
Instructions
  1. Step 1

    Find out how many web browsers do not handle Javascript. This will help determine if protecting your code from older browsers is needed. Check online resources to find out how many older browsers are still being used.

  2. Step 2

    Start your code with the opening tag: .

Tips & Warnings
  • An older browser that doesn't recognize the
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics