How to Enable JavaScript in a Browser on a Mac

Download Article
A simple guide to enabling JavaScript in your browser on macOS
Download Article

This How.com.vn teaches you how to enable JavaScript in Safari, Google Chrome, and Mozilla Firefox when you're using a Mac. JavaScript is enabled by default in most modern web browsers or is prompted whenever an application needs to use it, so you shouldn't have to enable it unless you've turned it off.

JavaScript for Mac: Enabling in Your Browser

  • JavaScript is enabled in most Mac web browsers by default, so you shouldn't have to enable it unless you've turned it off.
  • To enable JavaScript in Safari, click the Safari menu, select Preferences or Settings, click Security, and check the box next to "Enable JavaScript."
  • To enable JavaScript in Chrome, click the menu, go to Settings > Advanced > Site Settings > JavaScript, and toggle on the "Allowed" switch.

Things You Should Know

  • Navigate to the "Security" tab of your Safari Preferences to ensure the box next to "Enable JavaScript" is checked.
  • Find "Site Settings" under the "Privacy and Security" tab of your Chrome Settings to enable JavaScript.
  • Firefox enables JavaScript by default. If it is disabled, you may have an extension that is blocking it.
Method 1
Method 1 of 3:

Using Safari

Download Article
  1. How.com.vn English: Step 1 Open Safari on your Mac.
    It's the blue, white, and red compass icon on the Dock. The Dock is usually at the bottom of the screen.
  2. How.com.vn English: Step 2 Click the Safari menu.
    It's in the menu bar near the top-left corner of the screen.[1]
    Advertisement
  3. How.com.vn English: Step 3 Click Preferences on the menu.
    This opens the Preferences panel.
  4. How.com.vn English: Step 4 Click the Security tab.
    It's the padlock icon near the top of the window.
  5. Step 5 Check the box next to "Enable JavaScript."
    It's in the "Web content" section. As long as this box is checked, Safari will allow websites to display JavaScript elements, such as buttons, forms, and certain visual elements.
    • If you're using a browser plugin that blocks JavaScript from running on one or more websites, you'll usually need to disable it. You can do so on the Preferences panel by clicking Websites and de-selecting the plugin name.[2]
  6. Advertisement
Method 2
Method 2 of 3:

Using Google Chrome

Download Article
  1. How.com.vn English: Step 1 Open Chrome on your Mac.
    You'll usually find it in the Applications folder and/or on the Launchpad.
    • JavaScript is allowed by default in Chrome. You shouldn't have to manually enable it unless you've turned it off.
  2. How.com.vn English: Step 2 Click the  ⁝ menu.
    It's near the top-right corner of Chrome.
  3. How.com.vn English: Step 3 Click Settings on the menu.
    It's toward the bottom. This opens the Settings page.
  4. How.com.vn English: Step 4 Scroll down and click Advanced.
    It's at the bottom of the page.
  5. How.com.vn English: Step 5 Scroll down and click Site Settings.
    It's under the "Privacy and security" header about halfway down the page.
  6. How.com.vn English: Step 6 Click JavaScript.
    It's pretty close to the top of the options list.
    • If you see the word "Allowed" right below "JavaScript," JavaScript is already enabled.
    • If JavaScript isn't working despite being enabled, it's likely due to a security extension you've installed on Chrome. Click the menu, click More Tools, and then Extensions. Toggle off any extensions you don't want to use.
  7. Step 7 Slide the "Allowed" switch to the On icon position.
    As long as this switch is enabled, Chrome will allow websites to display JavaScript elements, such as buttons, forms, and certain visual elements.
    • Chrome lets you manually disable JavaScript by website. If you manually disabled JavaScript on a certain site and want to re-enable it, you can do so under the "Blocked" header. Click the menu next to the site's name and click Remove.
  8. Advertisement


Method 3
Method 3 of 3:

Using Mozilla Firefox

Download Article
  1. How.com.vn English: Step 1 Open Firefox on your Mac.
    You'll usually find it in the Applications folder and/or on the Launchpad.
    • JavaScript is enabled by default in Firefox. There's no way to disable it in your general Firefox options, so it's unlikely that you'll need to turn it on unless you've manually edited the about:config page.
    • If you've installed a privacy extension like Ghostery or NoScript that disables JavaScript, you may need to disable it to use JavaScript. Click the menu, click Add-ons, and then click Disable next to the extension.[3]
  2. How.com.vn English: Step 2 Type about:config into the address bar and press ⏎ Return.
    You'll usually see a somewhat-scary message that says "This might void your warranty!" This message is just a reminder that you should only edit this file if you have a specific reasons for doing so.
  3. How.com.vn English: Step 3 Click I accept the risk!.
    It's the blue button below the message. This opens a searchable list of settings.
  4. Step 4 Type javascript into the "Search" bar.
    It's at the top-left corner of the page. This filters the list to only display settings that include the word "JavaScript."
    • The results appear in three columns: Preference Name, Status, Type, and Value.
  5. Step 5 Find the value of the "javascript.enabled" setting.
    The "javascript.enabled" option should be the first or second option in the list. When you find it, look at the corresponding value of the "Value" column. It will either say "True" or "False."
    • If the Value is set to True: JavaScript is already enabled and there's no need to make any changes. Do not continue with this method.
    • If the Value is set to False: Continue with this method.
  6. How.com.vn English: Step 6 Right-click the False value.
    A context menu will appear.
  7. How.com.vn English: Step 7 Click Toggle.
    This changes the value from False to True. JavaScript is now enabled in Firefox.
  8. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Yaffet Meshesha
      Written by:
      Computer Specialist
      This article was written by Yaffet Meshesha and by How.com.vn staff writer, Nicole Levine, MFA. Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time. This article has been viewed 43,536 times.
      How helpful is this?
      Co-authors: 6
      Updated: March 29, 2024
      Views: 43,536
      Categories: JavaScript
      Article SummaryX

      1. Open Safari.
      2. Click the Safari menu.
      3. Click Preferences.
      4. Click Security.
      5. Check the "Enable JavaScript" box.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 43,536 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement