How to Disable and Enable JavaScript in Google Chrome?
Last Updated :
09 Jun, 2024
You may be wondering how a website looks with or without JavaScript. On Chrome, JavaScript is enabled by default, but you can disable it fairly quickly to see the impact on a site's functionality and appearance.
Why Should I Enable or Disable JavaScript?
Modern websites rely heavily on JavaScript to provide dynamic content and interactive features. Here are some reasons to consider:
Why Enable JavaScript?
- Full Functionality: Most websites require JavaScript to be enabled for all features to work properly. For example, automatic timeline updates on Twitter and interactive forms depend on JavaScript.
- Enhanced User Experience: With JavaScript enabled, you can enjoy smooth animations, dynamic content updates, and other features that make websites engaging and user-friendly.
- Support for Online Content: Many online magazines and blogs run ads to support their staff. Enabling JavaScript allows these ads to display, indirectly supporting the content creators.
Why Disable JavaScript?
- Ad Blocking: Disabling JavaScript can help block ads on certain sites, providing a cleaner browsing experience.
- Testing and Debugging: Developers might want to see how their website behaves without JavaScript to ensure basic functionality and design integrity.
- Privacy and Security: In some cases, disabling JavaScript can enhance privacy and security by preventing certain types of tracking and malicious scripts.
Disable And Enable Javascript In Google Chrome Settings
The easiest way to access the JavaScript options menu on Google Chrome is by entering this URL in the address bar in Chrome. Alternatively, you can follow the following series of steps to reach the Javascript option on the settings page.
Step 1: Select the three vertical dots icon in the top-right corner of the browser window.

Step 2:Towards the bottom of the drop-down menu that appears, select Settings.

Step 3: Find the Privacy and Security section and select Site Settings.

Step 4: Finally, click JavaScript in the Permissions group.

Step 5: By default, JavaScript is enabled. To disable JavaScript, move the slider to the left (by clicking it) next to the Allowed option. Enable JavaScript again by moving the slider back to the right.

Enable Or Disable Javascript On Specific Sites
As previously mentioned, you can also enable or disable JavaScript for specific sites. To do this, follow the following steps.
Step 1: Navigate back to the JavaScript settings menu in Chrome by going to this URL
Step 2: You’ll see a Block and Allow section. Select Add next to Block (1) or Allow (2), depending on if you want to disable or enable JavaScript on a site, respectively.
Step 3:The Add A Site window will now appear. Enter the site URL, then select the Add button.
Step 4: The site will now appear in your Block or Allow list, meaning that next time you visit that site, JavaScript will be disabled or enabled, respectively.

Disable JavaScript with Chrome DevTools for Testing
If JavaScript is enabled on Chrome and you’re wanting to see what a specific site looks like without going through the settings menu, you can disable JavaScript from Chrome’s DevTools while you’re on that site. This should only be used for testing purposes, though, as JavaScript will be re-enabled on the site once you close DevTools.
Step 1: While you’re on the site, Open DevTools. You can do this by right-clicking anywhere on the site and selecting Inspect.

Step 2: Alternatively, you can use the Control+Shift+3 (Windows) or Command+Option+3 (Mac) keyboard shortcut.
Step 3: Once you’re in DevTools, open the Command menu by pressing Control+Shift+P (Windows) or Command+Shift+P (Mac).

Step 4: In the search bar of the Command menu, type JavaScript, select Disable JavaScript, and then press the Enter key to run the disable JavaScript command.

Step 5: JavaScript is now disabled for this site. You can hover over the yellow warning icon next to the Sources tab to verify JavaScript is disabled.

Per-Site JavaScript Control:
- To control JavaScript on a per-site basis, click Add next to Block or Allow under the JavaScript settings.
- Enter the URL of the site you want to block or allow JavaScript for, then click Add.
By adjusting these settings, you can easily enable or disable JavaScript to suit your browsing needs. Whether you're blocking ads, debugging a site, or ensuring full functionality, Chrome makes it simple to manage JavaScript preferences.
Similar Reads
GeeksforGeeks Practice - Leading Online Coding Platform GeeksforGeeks Practice is an online coding platform designed to help developers and students practice coding online and sharpen their programming skills with the following features. GfG 160: This consists of 160 most popular interview problems organized topic wise and difficulty with with well writt
6 min read
JavaScript Tutorial JavaScript is a programming language used to create dynamic content for websites. It is a lightweight, cross-platform, and single-threaded programming language. It's an interpreted language that executes code line by line, providing more flexibility.JavaScript on Client Side: On the client side, Jav
11 min read
7 Different Ways to Take a Screenshot in Windows 10 Quick Preview to Take Screenshot on Windows 10:-Use the CTRL + PRT SC Keys to take a quick screenshot.Use ALT + PRT SC Keys to take a Screenshot of any application window.Use Windows + Shift + S Keys to access the Xbox Game Bar.Use Snip & Sketch Application as well to take screenshotTaking Scree
7 min read
Web Development Web development is the process of creating, building, and maintaining websites and web applications. It involves everything from web design to programming and database management. Web development is generally divided into three core areas: Frontend Development, Backend Development, and Full Stack De
5 min read
React Interview Questions and Answers React is an efficient, flexible, and open-source JavaScript library that allows developers to create simple, fast, and scalable web applications. Jordan Walke, a software engineer who was working for Facebook, created React. Developers with a JavaScript background can easily develop web applications
15+ min read
JavaScript Interview Questions and Answers JavaScript (JS) is the most popular lightweight, scripting, and interpreted programming language. JavaScript is well-known as a scripting language for web pages, mobile apps, web servers, and many other platforms. Both front-end and back-end developers need to have a strong command of JavaScript, as
15+ min read
React Tutorial React is a JavaScript Library known for front-end development (or user interface). It is popular due to its component-based architecture, Single Page Applications (SPAs), and Virtual DOM for building web applications that are fast, efficient, and scalable.Applications are built using reusable compon
8 min read
Domain Name System (DNS) DNS is a hierarchical and distributed naming system that translates domain names into IP addresses. When you type a domain name like www.geeksforgeeks.org into your browser, DNS ensures that the request reaches the correct server by resolving the domain to its corresponding IP address.Without DNS, w
8 min read
25 Basic Linux Commands For Beginners [2025] While performing a task, we all need shortcuts. Shortcuts help us to complete a task quickly. Linux comes with such commands which are one to two words, using that commands, you can perform several operations in no time. As a beginner, you must be aware of those basic Linux commands to complete an o
13 min read
SOLID Principles in Programming: Understand With Real Life Examples The SOLID principles are five essential guidelines that enhance software design, making code more maintainable and scalable. They include Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion. In this article, weâll explore each principle with real-
12 min read