<html>
<head>
<title>WebViewExtra Sample</title>
</head>
<body onclick="if (event.target.title != '') { B4A.CallSub('TheContentIs', true, event.target.title);}">
<span title="Super Secret important code A123" style="position:absolute; top: 0px; left: 0px; width:500px; height:100px; background: #FF0000;"/> </span>
<span title="Super Secret important code B987" style="position:absolute; top: 100px; left: 0px; width:500px; height:100px; background: #00FF00;"/> </span>
<h1>WebViewExtra</h1>
This is sample of calling B4A sub in html javascript
</body>
</body>
<script>
function doCallBack() {
var content = document.body.textContent;
B4A.CallSub('TheContentIs', true, content);
}
</script>
</html>