PDF download Download Article
Switch on JavaScript on a Windows PC, Mac, Android, iPhone, or iPad
PDF download Download Article

This wikiHow teaches you how to turn on JavaScript in your web browser to stop JavaScript errors and load and view certain videos and animations on websites. JavaScript is enabled by default in all web browsers, but if you turned it off, you can easily turn it back on using Chrome, Safari, Firefox, Microsoft Edge, and Samsung Internet, whether you're using a computer, phone, or tablet. This will fix errors and pop-ups about JavaScript. Read on to learn how to enable JavaScript on every popular web browser on Windows, Mac, Android, iPhone, & iPad.

How do I enable JavaScript?

  • Chrome on Android: Go to â‹® > Settings > Site settings > JavaScript and tap the switch.
  • Chrome on a computer: Go to â‹® > Settings > Privacy and security > Site Settings to turn on JavaScript.
  • Safari on iPhone: In the Settings app, go to Apps > Safari > Advanced , and turn on JavaScript.
  • Safari for Mac: Click the Safari menu, go to Settings > Security , and tap Enable JavaScript .
Method 1
Method 1 of 8:

Chrome on Android

PDF download Download Article
  1. It's a red, green, yellow, and blue spherical icon.
    • If you are using Chrome on an iPhone or iPad, JavaScript is enabled by default, and there is no way to enable or disable it.
  2. This three-dot menu icon is in the top-right corner of the screen on Android. [1]
    Advertisement
  3. It's about halfway down the page.
  4. This option is near the middle of the Site Settings page.
  5. Doing so enables JavaScript on your Android's Chrome browser. [2]
  6. Advertisement
Method 2
Method 2 of 8:

Chrome on Desktop

PDF download Download Article
  1. It's in the top-right corner of the browser's window on your Windows PC, Mac, or Chromebook.
  2. This option is near the bottom of the drop-down menu.
  3. 3
    Click Privacy and security . It's in the left panel.
  4. 4
    Click Site Settings . This is the last option on the page.
  5. It's near the bottom of the page.
  6. 6
    Turn on JavaScript. If JavaScript is turned off, select Sites can use JavaScript to turn it back on. [3]
    • If JavaScript is already enabled, there's no need to do this. If you're having trouble, try disabling privacy-focused extensions like Ghostery or NoScript.
    • Any sites beneath the "Block" heading on this page won't be allowed to use JavaScript. To remove sites from the block list:
      • Click â‹® to the right of the site's name.
      • Click Remove in the drop-down menu.
  7. Advertisement
Method 3
Method 3 of 8:

Safari on iPhone & iPad

PDF download Download Article
  1. It's a gray group of gears on the Home Screen.
  2. 2
    Scroll down and tap Apps . It's all the way at the bottom of your Settings.
    • If you're using iOS 17 or earlier, skip this step.
  3. There's a blue Safari icon on the left side of this option.
  4. It's at the bottom of the menu.
  5. It will turn green. Doing so enables JavaScript on your iPhone's Safari browser.

    Tip: You may need to close and re-open Safari for JavaScript to start working.

  6. Advertisement
Method 4
Method 4 of 8:

Safari on Mac

PDF download Download Article
  1. It's in the menu bar when Safari is open on your Mac.
  2. 2
    Click Settings . It's near the top of the menu.
  3. 3
    Click the Security tab. It's near the top of the window.
  4. It's next to the "Web content:" heading. Doing so enables JavaScript in Safari, though you'll most likely need to refresh your browser before affected pages will work.

    Note: If there's a checkmark in this box, JavaScript is already enabled in Safari.

  5. Advertisement
Method 5
Method 5 of 8:

Samsung Internet on Android

PDF download Download Article
  1. 1
    Tap the menu in the Samsung Internet browser ☰ . If you're using a Samsung Galaxy phone or tablet, you can use this method to enable JavaScript in the Samsung Internet web browser. [4]
  2. 2
    Tap Settings . This opens your web browser settings.
  3. 3
    Select Sites and downloads . This opens some permission options for your browser.
  4. 4
    Tap Site permissions . Now you'll see options to enable or disable JavaScript and other features.
  5. 5
    Toggle on the "JavaScript" switch to enable JavaScript. If JavaScript was off, this will turn it back on.
  6. Advertisement
Method 6
Method 6 of 8:

Firefox on Desktop

PDF download Download Article
  1. 1
    Type about:config into the Firefox address bar and press Enter . Like other web browsers, Firefox enables JavaScript by default. You won't need to enable it if you haven't disabled it. [5]
    • If you're using Firefox on your Android, iPhone, or iPad, there is no way to enable or disable Firefox–JavaScript is turned on by default and cannot be disabled.
  2. 2
    Click Accept the Risk and Continue if prompted. If you don't see this option, just skip to the next step.
  3. This filters the settings on the page to display the one you need.
    • If you see "true" next to "javascript.enabled," JavaScript is already turned on and you don't need to enable it.
  4. 4
    Click the toggle switch to enable JavaScript. If you see "false" next to "javascript.enabled," click the button with two arrows on the right side of the menu item to toggle JavaScript back on.
    • If you're still getting JavaScript errors in Firefox, disable any third-party privacy plugins that could be blocking JavaScript. Some of the more popular JavaScript-blocking extensions include "NoScript", "Ghostery," and "Script Blocker Ultimate." [6]
    • If all else fails, uninstall and reinstall Firefox to restore all of the default settings. Because JavaScript is a foundation of the Firefox browser, reinstalling should restore its functionality.
  5. Advertisement
Method 7
Method 7 of 8:

Microsoft Edge on Android

PDF download Download Article
  1. 1
    In Edge on your Android, go to edge://settings/content/javascript . Type or paste that address into the address bar, then select Enter or Go to open the JavaScript settings page.
    • If you're using Edge on your iPhone or iPad, you cannot enable or disable JavaScript–it's on by default and stays on.
  2. 2
    Toggle JavaScript on (if turned off). If JavaScript is already turned on, there's no need to make any changes. If it was off, tapping the switch will turn JavaScript back on.
  3. Advertisement
Method 8
Method 8 of 8:

Microsoft Edge on Desktop

PDF download Download Article
  1. 1
    Open Edge and click the three-dot menu ••• . It's at the top-right corner of your web browser on Windows and macOS.
  2. 2
    Click Settings . This is near the bottom of the menu.
  3. 3
    Click Privacy, search, and services . You'll find this near the top of the left panel.
  4. 4
    Click Site permissions . It's near the bottom of the menu.
  5. 5
    Select All permissions . A list of various permissions will appear.
  6. 6
    Select JavaScript . You may have to scroll down a little to see it.
    • If JavaScript is already set to "Allowed," there's no need to continue–JavaScript is already enabled. If you're having trouble, try disabling privacy-focused extensions like Ghostery or NoScript.
  7. 7
    Toggle the switch to the On position (blue). This enables JavaScript in Edge.
  8. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I enable Javascript on my Android phone?
    Community Answer
    This is not currently possible.
Ask a Question
      Advertisement

      Video

      Tips

      • If your browser is out of date, you may have to update it first before you can enable JavaScript.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 519,420 times.

      Is this article up to date?

      Advertisement