This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

Javascript settings in Firefox

more options

I am sure it is just my lack of knowledge, me doing something silly and/or missing the obvious, but I am a bit confused about Java and JavaScript.

Due to recent JavaScript exploits, I wanted to try run my browsers with it disabled. I realize that Java and JavaScript are two different things but firstly, I uninstalled Java via the control panel. After this the Java Plug-ins disappeared from Firefox. As I understand it, this now means my browsers will not run Java Applets.

So, then to JavaScripts. In Firefox, if I go to say www.vodafone.co.uk, the home page will not display correctly unless I tick the "Enable JavaScript" option.

My question is therefore, is the ability to run JavaScripts a built in feature of Firefox and totally unrelated to whether Java itself is installed on the PC? If this is so then also, how does this relate to Java versions, i.e. Java version 6 update 31, fixes the Flashback exploit but how does the JavaScript implementation in Firefox get updated or is this exploit only applicable to Java applets and not JavaScripts?

If someone could explain I would be most grateful.

Kind regards

I am sure it is just my lack of knowledge, me doing something silly and/or missing the obvious, but I am a bit confused about Java and JavaScript. Due to recent JavaScript exploits, I wanted to try run my browsers with it disabled. I realize that Java and JavaScript are two different things but firstly, I uninstalled Java via the control panel. After this the Java Plug-ins disappeared from Firefox. As I understand it, this now means my browsers will not run Java Applets. So, then to JavaScripts. In Firefox, if I go to say www.vodafone.co.uk, the home page will not display correctly unless I tick the "Enable JavaScript" option. My question is therefore, is the ability to run JavaScripts a built in feature of Firefox and totally unrelated to whether Java itself is installed on the PC? If this is so then also, how does this relate to Java versions, i.e. Java version 6 update 31, fixes the Flashback exploit but how does the JavaScript implementation in Firefox get updated or is this exploit only applicable to Java applets and not JavaScripts? If someone could explain I would be most grateful. Kind regards

Gewysig op deur Machine_Silver

All Replies (2)

more options

Hello,

yes, Java and JavaScript settings and preferences for interactive web pages are two different things, really.

Java applets are small programs coded in the Java programming language, they're NOT part of Firefox and, if I recall correctly, Java applets *may* as well have access to your computer (you need to confirm it every time). JavaScript coded scripts run sandboxed, which means that they don't have access to anything outside the website. If they do, this is a security issue and should be fixed immediately.

To your questions:

Yes, JavaScript is unrelated to Java and JavaScript can run when no Java Runtime Environment is installed. JavaScript is part of Firefox. When Java gets updated, it fixes Java-related issues, like the exploit you mentioned above. JavaScript most likely doesn't have this exploit.

The JavaScript engine gets updated each time Firefox does. Thus, you should be running the latest version anyway.

more options

I appreciate you taking the time to post this clear and informative reply.

Thanks very much.

Kind regards