Skip to content

Disable or Enable JavaScript in Safari on iPhone & iPad

Do you want to configure the JavaScript settings in Safari app? Learn how to allow or block JS execution on your iPhone and iPad.

The Safari browser offers a feature where you can enable or disable JavaScript execution for all the pages. All modern websites need JavaScript execution to run the site without any issues.

JavaScript is a basic necessity for all sites. However, it can be misused to inject hacking and data theft scripts.

In this guide, we have shared the steps to manage the JavaScript execution for sites in Safari app.

Block the JavaScript Execution

We can easily block the JavaScript execution using a toggle button. Here are the steps to follow:

  1. Open the Settings app on the iPhone or iPad.
  2. Scroll down and select the Safari menu from Settings.
  3. From Safari Settings, scroll to the bottom and tap the Advanced menu.
  4. Toggle the JavaScript button to Turn it OFF and disable execution.
    Block JavaScript execution on Safari iOS and iPad

It will completely block the JavaScript from running on any sites. If you block the JavaScript, a few websites might not work as intended.

Enable the JavaScript

  1. Open the Settings app on the iPhone or iPad.
  2. Scroll down and choose Safari from Settings.
  3. From Safari Settings, scroll to the bottom and tap the Advanced menu.
  4. Toggle the JavaScript button to Turn it ON and enable execution.
    Enable JavaScript on Safari iPhone or iPad

It will allow the JavaScript within the website to execute and run on the Safari browser without any issues. This is the recommended setting in most cases.

Bottom Line

By default, the Safari browser is set to allow JavaScript execution for all websites. However, we can completely control whether to allow or disable the Javascript for websites in the browser.

In most cases, you can keep the Javascript blocked; however, if any website misbehaves, you can quickly toggle the button to enable the Javascript on websites.

Similarly, you can configure JavaScript settings in Safari on Mac. Even on the computer browser, there is a toggle switch to manage the execution.

Lastly, if you've any thoughts or feedback, then feel free to drop in below comment box. You can also report the outdated information.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Kushal Azza

Kushal Azza

Kushal Azza is a Google Certified IT Professional, Digital Content Creator, and Go-To Digital Marketer with Engineering Degree. He has over a decade of experience solving tech problems, troubleshooting, and innovating digital solutions. Follow him on Twitter and LinkedIn.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.

Your email address will not be published, and we will never spam your inbox. Required fields are marked *