Numan
(Numan)
#1
Hello
I attempted to call js function in my html file with web viewer. I failed. Is it impossible. Or where am I doing wrong?
My html file is:
<!DOCTYPE html>
<html>
<body>
<p id="my">Merhaba<p>
<script>
function myFunction() {
document.getElementById('my').innerText="Hello World";
}
</script>
</body>
</html>
Block for JS:

Result:
1 Like
yusufcihan
(Yusuf Cihan)
#2
To communicate between WebViewer and application you can use WebViewString.
Groza95
(95)
#3
do you want to get the merhaba text?
Js
document.getElementById(’“my”).innerText;
Numan
(Numan)
#4
No, I attempted to call any function in a webpage. For example whether that function is able to print “hello world” to screen.