Disabling JavaScript: Why and How

Most recent web browsers support JavaScript, and enable it by default. You can turn it off in perhaps fifteen seconds (see the ``How'' section), and it will generally improve your browsing experience enormously thereafter.

There are a very few web sites -- generally poorly-thought-out sites that are ugly and contain little interesting information -- that are impossible to navigate with JavaScript turned off. You can turn JavaScript back on just as easily as you turned it off. (Just don't forget to turn it back off when you're done with that web site!)

Why

First, there's almost no benefit to leaving it on. Virtually all Web sites that use JavaScript are just as easy to navigate and just as pretty to look at without JavaScript. Even the small minority of sites that can't be navigated without JavaScript aren't any easier to navigate than simple HTML sites.

(I have seen one exception: Thomas Boutell's Geek, the Game. And I have heard that some people find it useful to remove all the menus, buttons, and scrollbars from web-browser windows to keep users under their control. It's up to you whether you want to be subject to that kind of control.)

Maybe I'm paranoid, but for me, the most important reason is security. Over the years, nearly all of the security vulnerabilities found in Web browsers have been in implementations of Java or JavaScript, and all of the worst ones have been in implementations of JavaScript. These have run the gamut from allowing a web-page author to annoy the user to allowing a web-page author to steal all the files on your hard disk and take control of your computer, so that the next few times you typed your credit card number or your mainframe password, that information would be whisked off to the Web-page author.

Here are a few sample problems:

How

Parts of this taken from WebMonkey's Intro to JavaScript. Please let me know if this information is inaccurate or if you can tell me how to turn off JavaScript in browsers I haven't mentioned here.

On Netscape 3 for Unix, Mac, or Microsoft Windows, click on the Options menu, select Network Preferences to get the Network Preferences dialog box, click on the Languages tab, and click on the Enable JavaScript checkbox to turn off the check mark in that box. (Then click OK.)

On Microsoft Internet Explorer 3 for Microsoft Windows, Webmonkey says you should ``choose Options [under the View menu], pick Advanced, and select Enable JavaScript''. My Internet Explorer doesn't have anything labeled Enable JavaScript there, but it does have another tab on the Options dialog box labeled Security, which has a ``Run ActiveX scripts'' checkbox in it, which, when you turn off the check mark in it, disables JavaScript. (Presumably it disables other scripting languages too.)

On Microsoft Internet Explorer 3 for Mac, Webmonkey says, ``Under the Edit menu choose Preferences, select Web Content, and under Active Content, select Enable Scripting.''. I don't have a Mac, so I can't confirm or deny this.

On Netscape 4 for Unix, Mac, or Microsoft Windows, click on the Edit menubutton, select ``Preferences'' from the bottom of the menu, click on ``Advanced'' in the Category box on the left side of the Preferences dialog (making sure it's Advanced itself you click on, not Cache or the other subcategories of Advanced), then turn off the Enable JavaScript checkbox.