JavaScripts   Earthweb  
Images Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   subjects:
Search EarthWeb Network

internet.commerce
Be a Commerce Partner
Online Universities
Logo Design
Corporate Gifts
Corporate Awards
KVM over IP
Cell Phones
Compare Prices
Web Hosting Directory
Memory
Laptops
Promotional Golf
PDA Phones & Cases
Dental Insurance
Calling Cards

Web Development : JavaScripts: Remembering "Anti-Scripters" When Developing Pages

FREE Tech Newsletters

Meet the HP ProLiant DL385 G5

Remembering "Anti-Scripters" When Developing Pages
July 12, 2001
By Bradley L. Jones

Face it, JavaScript is cool.  There is a ton you can do with JavaScript within a Web page. You can set up interaction. You can produce automation. You can tap into features of the browser being used. You can validate information. The list of what you can do goes on and on and on. There are so many things you can do that Web sites such as www.JavaScripts.com are centered providing a repository of scripts that can do different things.

So you've created the ultimate cool page. You have a flashy title. You have text following your cursor. You have menus that change colors and fonts. You have pop-up help. You have an interactive calendar. You have the ultimate in Web pages. Or, maybe you have a simple Web page that just uses a simple little script to make sure the user provided a piece of information.

Then, the user that comes to your site has scripting turned off in their browser....

Oops! Now your flashy site doesn't have a flashy title. Nor does it have text following the cursor, or menus that flash, or that popup help, or a calendar that works. The page also can't validate that information. Even the simple Web page is suddenly rendered near useless.

Is it a bad user or a bad Web page? While the tendency is to say it is a bad user, the reality is, you should have expected this possibility to happen. Because of viruses and many other web contaminants, many people have chosen to turn scripts off. It's safer. 

Alternatives for the Anti-Scripters

What can you do to make sure that your pages are not rendered totally useless for these anti-scripters?

You can include <noscript> tags on your page. The <noscript> tag can be used to include standard HTML and other standard text that will be displayed when the browser won't evaluate scripts. In fact, the <noscript> tag will execute when one of two conditions is present:

    1.    The browser viewing the page isn't set to run script
    2.    The browser or program being used to view the page does not support the scripting language being used. 

If one of these two cases is true, then the information within a <noscript> tag block will be executed.

Using the <noscript> Tag

The <noscript> is used like other HTML tags. You begin the tag block with <noscript>. You end it with </noscript>. Anything in between will be displayed when one of the two conditions above are true. If you create a page with a critical piece of JavaScript, you might want to include a <noscript> tag for that person that has scripting turned off.


JavaScripts Archives

*JavaScript is a registered trademark of Sun Microsystems, Inc.



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES