How to Disable JavaScript in Safari for iPhone

Thank JavaScript for interactive website features

Javascript is the high-level programming language behind the interactive features of dynamic websites. When you fill out an online form or view simple animations, you can thank JavaScript. It stands with HTTP and CSS as an essential programming language for the web. However, many consider it a flawed language because of its history of security vulnerabilities.

Users of iOS devices (iPhone, iPad or iPod Touch) who want to disable JavaScript in the Safari browser, whether for security or development purposes, can do so easily.

Information in this article applies to all iPhones, iPad, and iPod Touches devices running iOS 10 through 13.

Disable JavaScript on iPhone, iPod Touch, and iPad

To disable JavaScript on your iOS device, follow these steps.

open the Settings app on your iPhone, iPod touch, or iPad and then:

  1. Open the Settings app, scroll down and select Safari.

  2. Scroll to the bottom of the Safari settings screen and select Advanced.

  3. Toggle the JavaScript switch to to the off/white position.

    Screenshots of iOS settings showing how to turn off Safari's JavaScript function

Many websites don't render or function as expected while JavaScript is disabled. If you run into this problem, return to the Safari settings and activate JavaScript by moving the slider back to the on/green position.

Uses of JavaScript

Javascript is responsible for how a web page responds to input from the viewer. When you select an element on a web page and something happens—a special effect or a survey, for example—JavaScript is responsible. Some of the uses of JavaScript include:

  • Confirmation boxes
  • Slide-in call-to-actions
  • Security password creation
  • Check-off forms
  • Interactive games
  • Special effects
  • Animations
  • Web applications
  • Presentations as websites
  • Providing feedback to web developers

Why Disable JavaScript?

Most people who disable JavaScript do so for security reasons. For regular at-home browsers, javascript isn't usually a problem, but it is often disabled on secure remote servers or internal networks as a precaution.