How to Enable or Disable Javascript in Web Browsers

Feb 8, 2012 - 7 Comments

Disable Javascript

Need to re-enable or disable Javascript in Safari, Chrome, or Firefox? Most modern web browsers make it very easy to toggle on or off, and while it’s almost always recommended to keep javascript enabled, there are cases where developers and other users need to turn it off.


  • Open Safari Preferences
  • Click on “Advanced” and check the box next to “Show Develop menu in menu bar”
  • Pull down the “Develop” menu and select “Disable Javascript”, a check signifies it’s disabled

Google Chrome:

  • Open Google Chrome’s Preferences
  • Click on “Under the Hood” and then “Content Settings”
  • Find Javascript then click “Do not allow any site to run JavaScript” to disable, or “Allow all sites” to enable


  • Open Preferences and click on “Content”
  • Check or uncheck the box next to “Enable Javascript”

Mobile Safari for iPhone, iPad, and iPod touch:

  • Tap on Settings, then tap on “Safari”
  • Switch Javascript to “ON” or “OFF” depending on your needs

Remember to reenable Javascript to have a full web experience if you have disabled it temporarily.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Mac OS X, Tips & Tricks, Troubleshooting


» Comments RSS Feed

  1. Rob says:

    Thanks for your many informative articles.
    For Mozilla Firefox there is also the free Noscript addon wich can let yo even block or allow specific websites

  2. Ben says:

    Web is a lot faster without Javascript but half the internet doesn’t work heh

  3. Frank L. says:

    Rob – you beat me to the punch, Noscript for Firefox is the best way to go. It gives you very fine control over what does and doesn’t run. When you visit a it will tell you all of the domains that attempted to run and you can allow individual pieces (or a one time allow all, or a white list this page). It means that you never have to worry about forgetting to turn off scripts if you are wandering down the less well traveled paths.

  4. Peter says:


    * Alt+F12 (fn+⌥+F12 on Mac)
    * Toggle JavaScript from the context menu

    Also, you can add a JavaScript-toggle checkbox from the Appearance dialogue box.

  5. Sam says:

    How to prevent sites from enabling javascrip on iphone?

  6. […] surprisingly Javascript can be easily disabled on desktop browsers too, though the process will be a bit different for each app. Much like on older iOS models, it can […]

Leave a Reply


Shop for Apple & Mac Deals on

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates