<html>
<head>
<title>Hello World!</title>
<script src='file:///android_asset/app.js'></script>
</head>
<body>
<p>Hello World!</p>
<a href="http://google.com">Open google.com in WebView</a>
<p></p>
<!-- id='extLink' identifies this link as one to open in a browser in document.onclick --> <a id="extLink" href="http://google.com">Open google.com in Browser</a>
<script>
// Override link clicks to open url in a browser
document.onclick = function(e) {
if(e.target.id === "extLink")
{
app.OpenUrl(e.target.href);
// return false to prevent default action
// and stop event propagation
return false;
}
return true;
};
</script>
</body>
</html>