Skip to content

Instantly share code, notes, and snippets.

@wicketyjarjar
Forked from anonymous/PhoneGap URL Test
Last active December 25, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wicketyjarjar/7043336 to your computer and use it in GitHub Desktop.
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'
<!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