JavaScript is a scripting language that web developers use to add dynamic interactions and functionality to websites - in essence, it lets web pages load and update content in the background without a full page reload. Apple's Safari browser ships with JavaScript enabled by default on every platform: iPhone, iPad, and Mac.
With JavaScript disabled, those interactions break. Sites like YouTube, Gmail, iCloud.com, X (formerly Twitter), Facebook, online banking, and most modern web apps rely on JavaScript to load content, validate forms, and update in real time. Turn the toggle off and you'll see plain text, missing buttons, blank panels, or error messages instead of the experience you expect.
This guide covers every modern path to enable or disable JavaScript in Safari - on iPhone and iPad running iOS 18 and later, and on Mac running macOS Sonoma, Sequoia, and macOS 26. All you need is a recent copy of Safari (Safari 18 or later) and a couple of minutes.
Below you'll find platform-specific walkthroughs with current 2026 screenshots. Because Apple requires every iOS browser to use the system WebKit engine, the iOS Safari toggle also controls JavaScript for Chrome, Edge, Firefox, Opera, Brave, and DuckDuckGo on the same device - making this page the canonical iOS reference.