-
-
Save wicketyjarjar/7043336 to your computer and use it in GitHub Desktop.
Demonstration of the 3 different behaviours of the Cordova/PhoneGap InAppBrowser: '_system', '_blank' and '_self'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, target-densitydpi=medium-dpi" /> | |
<title>Hello World</title> | |
<script type="text/javascript" src="cordova.js"></script> | |
</head> | |
<body> | |
<a href="#" onclick="var ref = window.open('http://google.com', '_system');">Google (System Browser)</a><br /><br /> | |
<a href="#" onclick="var ref = window.open('http://google.com', '_blank');">Google (InAppBrowser)</a><br /><br /> | |
<a href="#" onclick="var ref = window.open('http://google.com', '_self');">Google (Webview)</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment