Stop your links from leaving full screen mode on iOS devices.
JavaScript
Permalink
Failed to load latest commit information.
README.md added some usage examples to README.md Sep 13, 2011
jquery.stayInWebApp.js Added support for https absolute urls (to min version) Jun 19, 2012
jquery.stayInWebApp.min.js

README.md

This jQuery plugin will stop links from leaving full screen mode on iOS devices. Other side effects may be included.

$(function() {
    $.stayInWebApp();
});

This use only links with the class stay.

$(function() {
    $.stayInWebApp('a.stay');
});

Full links (starting with http) will still open in Safari, as well as links with target="_blank".


Thanks to Bryan Murdaugh and David Leininger for the original starting script (mostly for discovering that self.location works).

Thanks to Ben Nadel for posting about how to detect iOS full screen mode.