Simple example
showTextInWebViewer.aia (2.1 KB)
HTML
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<head>
<title>Display WVS</title>
</head>
<body>
<div id = "show"></div>
<script>
if (window.AppInventor) {
var wvs = window.AppInventor.getWebViewString();
document.getElementById("show").innerHTML = wvs;
} else { document.getElementById("show").innerHTML = "you are not using AppInventor ;)"
}
</script>
</body>
</html>