JavaScript for iPhone to open in Safari from non-default iOS browser

“googlechrome://” opened in mobile Safari will switch to Google Chrome iOS app to open the URL. This allows for scriptlets like the one below, which allows you to open the current page in Google Chrome iOS app, switching from mobile Safari:


My question is, can the reverse be done? I tried “safari://”, and it is simply an invalid URL. Can you make a scriptlet which switches from Google Chrome to mobile Safari to open the current page.

  • Embed a JavaScript engine in an iOS application
  • YouTube API not working in iOS (iPhone/iPad) but working fine in Desktop browsers?
  • Intercepting AJAX requests on Chrome for iOS?
  • iOS7 Detect keyboard height with Javascript?
  • How can i store a 50MB video in HTML5's app cache?
  • iOS Chrome/Safari - Unwanted scrolling when focusing an input inside the modal
  • Disabling the 'Copy' feature in iPad Safari browser
  • React-Native Updating List View DataSource
  • Download file with PhoneGap and use within AngularJS
  • Form submit button event is not captured when keyboard is up iOS 7
  • UIWebView Javascript garbage collection with THREE.js scenes
  • Xcode - UIWebview not displaying CSS, Javascript or external content
  • One Solution collect form web for “JavaScript for iPhone to open in Safari from non-default iOS browser”

    The answer is yes. Courtesy or MacStories (, I found this code:


    Execute that code, go to your homescreen, reopen Chrome, and there’s a magical back button to go back to Safari. This may not be exactly what you want, but it works… Kink of.

    Good luck!

    Here’s a screenshot:
    Link (Sorry, I don’t have enough reputation to put it right in the post):

    It seems that the functionality to do this has broken. Thank you!