Easy instructions for all major web browsers
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
- Click â‹® at the top-right corner of Chrome.
- Click Settings .
- Go to Privacy and security > Site Settings > JavaScript .
- Click the radio button next to "Don't allow sites to use JavaScript."
Steps
-
Open Google Chrome and click the menu â‹® . It's in the top-right corner of Chrome on your PC, Mac, or Chromebook. A drop-down menu will appear.
-
Click Settings . This option is in the drop-down menu. Doing so opens the Chrome Settings page.Advertisement
-
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.
-
Click Site Settings . It's at the bottom of the "Privacy and Security" menu.
-
Scroll down and click JavaScript . It's the second option below the "Content" header.
-
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 .
Advertisement
-
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.
-
Tap Settings . It's near the bottom of the drop-down menu.
-
Scroll down and tap Site settings . You'll find this option near the bottom of the Chrome Settings menu.
-
Tap JavaScript . It's in the middle of the page.
-
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.
Advertisement
-
Click Safari menu in Safari. It's in the top-left corner of the screen. A drop-down menu will appear. [1] X Research source
-
Click Settings . It's in the Safari drop-down menu.
-
Click the Security tab. You'll see this tab at the top of the window.
-
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.
Advertisement
-
Open your iPhone's Settings. Tap the Settings app icon, which resembles a grey box with gears on it.
-
Scroll down and tap Safari . You'll find this option near the middle of the Settings page.
-
Scroll down and tap Advanced . It's at the bottom of the page.
-
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.
Advertisement
-
Click ⋯ in Microsoft Edge. It's the icon with three dots in the upper-right corner. This displays the menu.
-
Click Settings . It's at the bottom of the drop-down menu. It's next to an icon that resembles a gear.
-
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.
-
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.
-
Click the blue toggle switch next to "Allowed (recommended). " 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 .
Advertisement
-
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.
-
Go to the configuration page. Type in about:config and press Enter .
-
Click Accept Risk and Continue when prompted. It's a blue button in the middle of the page.
-
Click Show all at the top. This displays all configuration settings that you can tweak.
-
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.
-
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.
Advertisement
-
1Tap the icon with three lines in Samsung Internet ☰ . It's in the lower-right corner of the Samsung Internet app. This displays the menu.
-
2Tap Settings . It's the icon that resembles a gear.
-
3Tap Sites and downloads . It's about halfway down the Settings menu.
-
4Tap Site Permissions . It's the third option in the "Sites and downloads" menu.
-
5Tap the blue toggle switch next to "Allow Javascript." . This disables Javascript. If the toggle switch is grey, Javascript is already disabled.
Advertisement
-
1Click the icon with three lines in Brave ☰ . It's in the upper-right corner. This displays a drop-down menu.
-
2Click Settings . It's near the bottom of the drop-down menu. It's next to an icon that resembles a gear.
-
3Click Shields . It's in the menu bar to the left. This menu allows you to block various internet features.
-
4Click the toggle switch next to "Block scripts." This disables all internet-based scripts, including Javascript.
Advertisement
-
1Click the Opera icon in Opera. It's the icon with the red "O" in the upper-left corner. This displays the menu.
-
2Click Settings . It's near the bottom of the menu.
-
3Click Privacy & security . It's the second option in the menu to the left.
-
4Click Site Settings . It's the fourth option in the "Privacy & security" menu. It's next to an icon that resembles two slider bars.
-
5Click Javascript . It's the second option below the "Content" header.
-
6Click 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 .
Advertisement
-
1Open 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.
-
2Press 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 .
-
3Open 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 .
-
4Click 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.
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
- Disabling JavaScript is a quick way to load content-rich websites when on a slow Internet connection.Thanks
- Some webpages may not load correctly if you disable JavaScript.Thanks
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 419,385 times.
Reader Success Stories
- "I found the big pointer helpful, so I didn't have to search the page to follow simply written instructions."
Advertisement