How to enable JavaScript in your iPhone's Settings app to improve your Safari web experience

JavaScript is a popular programming language used by most websites.

On an iPhone, JavaScript should be turned on by default, but if it was disabled at some point, many websites will appear broken in the Safari browser. 

To enable JavaScript, go into the Settings app on your iPhone, click “Safari,” then “Advanced,” and swipe the JavaScript button to the right so it appears green. 

Here’s a full breakdown with pictures.

  1. Open the Settings app on your iPhone.
  2. Scroll down until you see “Safari,” and tap it.

    To enable JavaScript, start the Settings app and go to Safari.

  3. At the bottom of the page, tap “Advanced.”

    The JavaScript control is located in the Advanced tab.

  4. On the Advanced page, turn JavaScript on by swiping the button to the right. 

    Make sure JavaScript is toggled on and appears green.