Pocket How
Apps, Safari and keyboard

How to enable JavaScript in Safari on iPhone

Works on iPhone and iPad. By Cihat Salik, updated .

Short answer

Open Settings, tap Apps, then Safari, then Advanced, and turn on JavaScript. It is on by default; sites with buttons, forms or menus that do nothing usually need it.

Turn on JavaScript

  1. Open Settings, tap Apps, then Safari.

    1. Settings
    2. Apps
    3. Safari
  2. Scroll down and tap Advanced.

  3. Turn on JavaScript.

Check the page again

  1. Go back to Safari and reload the page.

  2. If it still misbehaves, turn off content blocker extensions in Settings, Apps, Safari, then Extensions.

    1. Settings
    2. Apps
    3. Safari
    4. Extensions

Good to know

On iOS 17 and earlier, Safari is directly in Settings rather than under Apps. If a site still fails with JavaScript on, the problem is on the website’s side; contact the site.

Checked against Apple Support

TrackLens: Screen Recorder

TrackLens records your screen and zooms in where it changes, handy for showing a site owner what breaks.

Download on the App Store
TrackLens on iPhone, App Store screenshot 1TrackLens on iPhone, App Store screenshot 2TrackLens on iPhone, App Store screenshot 3TrackLens on iPhone, App Store screenshot 4
  • Zooms in where the screen changes, so viewers follow the action
  • Microphone, app sound and camera recorded on separate tracks
  • Trim, split, speed and one-pass silence removal on a timeline

One App Store listing covers iPhone, iPad and Mac.

We make TrackLens. You do not need it for the steps above.

TrackLens website: how it works, guides and support

See every app we make

Questions people also ask

  • How do I enable JavaScript on iPad?

    Settings > Apps > Safari > Advanced, then turn on JavaScript.

  • How do I enable JavaScript in Chrome on iPhone?

    Chrome on iPhone has no separate JavaScript switch; it is always on.

  • Is it safe to keep JavaScript on?

    Yes. Almost every website needs it, and Safari keeps it on by default.

More things your iPhone can do

TrackLens Also from us Get