How do you display text in a webviewer using webviewer.string?

how to display text in a web viewer using webviewer.string block please help I'm beginner


Simple example

showTextInWebViewer.aia (2.1 KB)


<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>Display WVS</title>

	<div id = "show"></div>
	if (window.AppInventor) {
    	var wvs = window.AppInventor.getWebViewString();
		document.getElementById("show").innerHTML = wvs;
	} else { document.getElementById("show").innerHTML = "you are not using AppInventor ;)"
1 Like

what about blocks to be programmed in mit app inventor , Please guide me that also

Look at the AIA project example

ohh ok sorry actually i was busy that's why i didn't download the file

i will tell you if i have any further doubt , :grinning:

A post was split to a new topic: How do you add background colour to string in List view?

That demo program works even better than javascriptWebViewProcessor.html!