Tech Reference

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

on phone home
It's important to check that JavaScript is enabled on your iPhone so that websites work properly in Safari. Mikael Vaisanen/Getty Images
Updated
Read in app

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.

Read next

Dave Johnson is a technology journalist who writes about consumer tech and how the industry is transforming the speculative world of science fiction into modern-day real life. Dave grew up in New Jersey before entering the Air Force to operate satellites, teach space operations, and do space launch planning. He then spent eight years as a content lead on the Windows team at Microsoft. As a photographer, Dave has photographed wolves in their natural environment; he's also a scuba instructor and co-host of several podcasts. Dave is the author of more than two dozen books and has contributed to many sites and publications including CNET, Forbes, PC World, How To Geek, and Insider.