Contents
You can use any syntax that’s supported in Safari to write JavaScript in the Run JavaScript on Webpage action. iOS 13 and iPadOS supports ECMA 6 JavaScript syntax, including for of loops and let .
Can I use JavaScript for iOS?
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.
How do I run JavaScript on my iPhone?
Apple iPhone – Turn JavaScript On / Off
- From a Home screen on your Apple® iPhone®, navigate: Settings > Safari . If unavailable, swipe left to access the App Library.
- From the ‘Safari’ menu screen tap Advanced. Mat require scrolling to the bottom of the screen.
- Tap the JavaScript switch to turn on or off .