Enable JavaScript in Apple Safari
Complete guide to enable JavaScript in Apple Safari on Mac, iPhone, and iPad devices with step-by-step instructions.
Apple Safari
Follow these steps to enable JavaScript in Apple Safari on your Mac, iPhone, or iPad.
Quick Navigation
Mac / Desktop
- Open Safari and click Safari in the menu bar
Screenshot — 1 - Select Preferences (or Settings on newer versions)
Screenshot — 2 - Click the Security tab
Screenshot — 3 - Check the box next to Enable JavaScript
Screenshot — 4 - Close the preferences window and refresh any open web pages
Screenshot — 5
iPhone / Mobile
- Open the Settings app on your iPhone
- Scroll down and tap Safari
- Scroll down to the Advanced section
- Toggle JavaScript to ON (green)
- Return to Safari and reload the page
iPad / Tablet
- Open the Settings app on your iPad
- Scroll down and tap Safari
- Scroll down to the Advanced section
- Toggle JavaScript to ON (green)
- Return to Safari and reload the page
Tips & Best Practices
Safari Preferences
On macOS, Safari preferences are now called 'Settings' in newer versions. Look for either 'Preferences' or 'Settings' in the Safari menu.
iOS Settings Location
On iPhone and iPad, JavaScript settings are in the device Settings app, not within Safari itself. Go to Settings → Safari → Advanced → JavaScript.
Content Blockers
Safari supports content blockers that can control scripts. If a site doesn't work, check your content blockers in Settings → Safari → Extensions.
Develop Menu
Enable the Develop menu in Safari → Settings → Advanced → Show Develop menu. This gives you access to Web Inspector and other developer tools for troubleshooting.
Frequently Asked Questions
How do I enable JavaScript in Safari?
- Open Safari and click 'Safari' in the menu bar
- Select 'Preferences' (or 'Settings' on newer versions)
- Click the 'Security' tab
- Check the box next to 'Enable JavaScript'
Close the preferences window and refresh any open web pages.
How do I enable JavaScript in Safari on iPhone or iPad?
- Open the 'Settings' app
- Scroll down and tap 'Safari'
- Scroll down to the 'Advanced' section
- Toggle 'JavaScript' to ON (green)
This enables JavaScript for all websites in Safari on your iOS device.
Can I control JavaScript per website in Safari?
Alternatives:
- Use Safari extensions or content blockers to manage JavaScript on a per-site basis
- On macOS, use the Develop menu to disable JavaScript temporarily for testing
Read Also
External Resources
About Apple Safari
Explore Apple Safari browser, its WebKit engine, and integration with Apple ecosystem.
Read on WikipediaAbout JavaScript
Discover the history, features, and importance of JavaScript programming language.
Read on Wikipedia