How to run bookmarklet in Safari on iOS With Chrome, the only way I can run a bookmarklet is by typing the bookmarklets name into the address bar and then clicking the suggested result. In Safari on iOS, it displays a result saying that JavaScript cannot be run from the address bar. I don't have access to an iPhone that I can continue to use to test the bookmarklets I write, but I attempted running it from the bookmarks menu in Safari and it didn't do anything.

How do I run bookmarklets on iOS in Safari?
Apart from opening Safari manually and selecting the bookmark from your favorites, you can also pin it to your homescreen were you can tap the icon and it'll open Safari for you and run the Javascript. Although for that you need to use a slightly different address.

data:text/html,&lt;script&gt;alert('test')&lt;/script&gt;


Visit the above and after the page is loaded you can then tap share and select pin to homescreen. After that you can just tap the icon.

Those are the only two ways to run JS/HTML script.