PDF download Download Article
Easy instructions for all major web browsers
PDF download Download Article

Disabling JavaScript can improve security while browsing the internet by limiting your exposure to malicious code. If you have a slower internet connection, it may improve the speed at which websites load. If you are a website developer, you may want to disable JavaScript to test how your website functions without JavaScript. This wikiHow article teaches you how to disable JavaScript in any web browser, plus how to turn off JavaScript for just one website .

How to Disable JavaScript in Chrome

  1. Click â‹® at the top-right corner of Chrome.
  2. Click Settings .
  3. Go to Privacy and security > Site Settings > JavaScript .
  4. Click the radio button next to "Don't allow sites to use JavaScript."
Method 1
Method 1 of 10:

Using Chrome on a Computer

PDF download Download Article
  1. It's in the top-right corner of Chrome on your PC, Mac, or Chromebook. A drop-down menu will appear.
  2. 2
    Click Settings . This option is in the drop-down menu. Doing so opens the Chrome Settings page.
    Advertisement
  3. 3
    Click Privacy and security . It's the third option in the menu bar to the left. It's next to an icon that resembles a shield.
  4. 4
    Click Site Settings . It's at the bottom of the "Privacy and Security" menu.
  5. 5
    Scroll down and click JavaScript . It's the second option below the "Content" header.
  6. 6
    Click the radio option next to "Don't allow sites to use JavaScript." This disables JavaScript for all websites.
    • If this option is already checked, JavaScript is already turned off.
    • Alternatively, you can block certain websites from using JavaScript. To do so, click Add next to "Not allowed to use JavaScript" below "Customized behaviors." Enter the URL for the site you want to block and click Add .
  7. Advertisement
Method 2
Method 2 of 10:

Using Chrome on Android

PDF download Download Article
  1. 1
    Open Google Chrome and tap the menu â‹® . This option is in the top-right corner of the screen. A drop-down menu will appear.
    • You cannot disable JavaScript in the iPhone or iPad version of Chrome.
  2. 2
    Tap Settings . It's near the bottom of the drop-down menu.
  3. 3
    Scroll down and tap Site settings . You'll find this option near the bottom of the Chrome Settings menu.
  4. 4
    Tap JavaScript . It's in the middle of the page.
  5. 5
    Tap the blue "JavaScript" switch . The switch will turn grey, signifying that your browser's JavaScript has been disabled.
    • If the switch is already grey, JavaScript is disabled in your Android's Chrome browser.
    • When you update Google Chrome, you may have to re-disable JavaScript.
  6. Advertisement
Method 3
Method 3 of 10:

Using Safari on a Mac

PDF download Download Article
  1. 1
    Click Safari menu in Safari. It's in the top-left corner of the screen. A drop-down menu will appear. [1]
  2. 2
    Click Settings . It's in the Safari drop-down menu.
  3. You'll see this tab at the top of the window.
  4. 4
    Uncheck the "Enable JavaScript" box. It's next to the "Web content" heading in the middle of the window. Doing so disables JavaScript in Safari.
    • If this box is already unchecked, JavaScript is disabled in Safari.
  5. Advertisement
Method 4
Method 4 of 10:

Using Safari on iPhone

PDF download Download Article
  1. Tap the Settings app icon, which resembles a grey box with gears on it.
  2. 2
    Scroll down and tap Safari . You'll find this option near the middle of the Settings page.
  3. 3
    Scroll down and tap Advanced . It's at the bottom of the page.
  4. 4
    Tap the green "JavaScript" switch . The switch will turn white, which signifies that your iPhone's Safari browser will no longer display JavaScript.
    • If the "JavaScript" switch is already white, JavaScript is disabled for Safari.
    • You may have to re-disable JavaScript after you update your iPhone.
  5. Advertisement
Method 5
Method 5 of 10:

Using Microsoft Edge on a Computer

PDF download Download Article
  1. 1
    Click ⋯ in Microsoft Edge. It's the icon with three dots in the upper-right corner. This displays the menu.
  2. 2
    Click Settings . It's at the bottom of the drop-down menu. It's next to an icon that resembles a gear.
  3. 3
    Click Cookies and site permissions . It's in the menu bar to the left. It's next to an icon that resembles a web browser with a gear over it.
  4. 4
    Scroll down and click JavaScript . It's the sixth option below the "All permissions" header. It's next to a box that says "JS" in the middle.
  5. 5
    Click the blue toggle switch next to "Allowed (recommended).
    Windows Switch On
    "
    It's the first option at the top of the page. This disables JavaScript for all websites.
    • If the toggle switch is grey, JavaScript is already turned off.
    • Alternatively, you can block specific websites from displaying JavaScript. To do so, click Add next to "Block." Enter the URL for the site you want to block and click Add .
  6. Advertisement
Method 6
Method 6 of 10:

Using Firefox & Tor on a Computer

PDF download Download Article
  1. 1
    Click the address bar in Firefox or Tor. It's the long text box at the top of the Firefox window.
    • If there's any text in the address bar, delete it before proceeding.
  2. 2
    Go to the configuration page. Type in about:config and press Enter .
  3. 3
    Click Accept Risk and Continue when prompted. It's a blue button in the middle of the page.
  4. 4
    Click Show all at the top. This displays all configuration settings that you can tweak.
  5. 5
    Search for the JavaScript option. Click the search box at the top, type in javascript , then look for the "javascript.enabled" option near the top of the page.
  6. 6
    Double-click the "javascript.enabled" option. It's near the top of the list of results. Doing so will change its "Value" category to "false", which turns off JavaScript in Firefox or Tor .
    • If the "Value" category is already set to "false" instead of "true", JavaScript is already disabled.
  7. Advertisement
Method 7
Method 7 of 10:

Using Samsung Internet on Android

PDF download Download Article
  1. 1
    Tap the icon with three lines in Samsung Internet ☰ . It's in the lower-right corner of the Samsung Internet app. This displays the menu.
  2. 2
    Tap Settings . It's the icon that resembles a gear.
  3. 3
    Tap Sites and downloads . It's about halfway down the Settings menu.
  4. 4
    Tap Site Permissions . It's the third option in the "Sites and downloads" menu.
  5. 5
    Tap the blue toggle switch next to "Allow Javascript."
    Android 7 Switch On
    . This disables Javascript. If the toggle switch is grey, Javascript is already disabled.
  6. Advertisement
Method 8
Method 8 of 10:

Using Brave on a Computer

PDF download Download Article
  1. 1
    Click the icon with three lines in Brave ☰ . It's in the upper-right corner. This displays a drop-down menu.
  2. 2
    Click Settings . It's near the bottom of the drop-down menu. It's next to an icon that resembles a gear.
  3. 3
    Click Shields . It's in the menu bar to the left. This menu allows you to block various internet features.
  4. 4
    Click the toggle switch next to "Block scripts." This disables all internet-based scripts, including Javascript.
  5. Advertisement
Method 9
Method 9 of 10:

Using Opera on a Computer

PDF download Download Article
  1. 1
    Click the Opera icon in Opera. It's the icon with the red "O" in the upper-left corner. This displays the menu.
  2. 2
    Click Settings . It's near the bottom of the menu.
  3. 3
    Click Privacy & security . It's the second option in the menu to the left.
  4. 4
    Click Site Settings . It's the fourth option in the "Privacy & security" menu. It's next to an icon that resembles two slider bars.
  5. 5
    Click Javascript . It's the second option below the "Content" header.
  6. 6
    Click the radio option next to "Don't allow sites to use JavaScript." This disables Javascript for all websites.
    • If this option is already checked, JavaScript is already blocked.
    • Alternatively, you can block certain websites from using JavaScript. To do so, click Add next to "Not allowed to use JavaScript" below "Customized behaviors." Enter the URL for the site you want to block and click Add .
  7. Advertisement
Method 10
Method 10 of 10:

Disabling JavaScript for One Website

PDF download Download Article
  1. 1
    Open any web browser. If you want to see how a website will look with JavaScript disabled, you can turn off JavaScript for just one website using Developer Tools. This method will work in any Chromium-based browser, such as Google Chrome, Microsoft Edge, Opera, or Brave, as well as in Firefox and TOR.
  2. 2
    Press F12 to open Inspect Elements. It's the last of the Function (F) keys at the top of your keyboard. On many computers, you need to press and hold the "Fn" key to access the Function keys.
    • Alternatively, you can right-click or control-click the center of a webpage and click Inspect or Inspect Element .
  3. 3
    Open the developer settings menu. On most web browsers, you can click the icon that resembles a gear in the upper-right corner of the Inspect Element panel. If you don't see a gear, click the icon with three dots ( ⋯ ) and then click Settings .
  4. 4
    Click the checkbox next to "Disable JavaScript." Depending on your web browser, it will either be under the "Debugger" or "Advanced Settings" header. This disables JavaScript in for the website you're viewing.
    • If you don't see the "Disable JavaScript" checkbox, make sure you are on the "Preferences" tab in the menu to the left.
  5. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Tips

      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 418,031 times.

      Reader Success Stories

      • Anonymous

        Jun 9, 2017

        "I found the big pointer helpful, so I didn't have to search the page to follow simply written instructions."
      Share your story

      Is this article up to date?

      Advertisement