You normally do this by checking your browser's options. This will depend on the browser you're using. Instructions for some of the more common browsers are below:
Internet Explorer (6.0)
Netscape Navigator (4.8)
Mozilla Firefox (1.0)
Mozilla Firefox (1.5)
Apple Safari (1.0)
Please keep in mind that upgrading your browser or installing new security software or security patches may affect your JavaScript settings. It is a good idea to double-check that JavaScript is still enabled if you notice problems displaying this page.
If you are still experiencing problems viewing this page ensuring that JavaScript is enabled in your browser, please check if you have any personal firewall or security software installed.
You simply go through the steps above but ensure the JavaScript options are not checked/selected.
If you're developing web pages with JavaScript, it's good practice to view your website with JavaScript disabled. This will show you what your website will look like to users who choose to disable JavaScript.
Most (if not all browsers) give you the option to enable/disable JavaScript. If your browser is not listed above, the steps above will give you some idea of how to find it. Just look for something called tools, options, preferences or something similar.
Java and JavaScript are two different things - make sure you're enabling/disabling the right option!