I would like to display a modified version of a webpage the user provide, but would be better in the browser he is used to.
I achieved evaluating javascript in webview.
But I wonder if it’s possible to evaluate javascript when “Use external browser” is ON.
First, I thought “no”, but evaluating “alert(“ok”);” works (even if the popup display in app and not in browser).
Other commands (getElementbyId + change color etc) seems not working.
Evaluating js only works with simple things with one line code means you can’t create store and retrieve variable and define function and after that call funtion. Var a = document.getElementById() Console.log(a)
This didn’t work but document.getElementById(). innerText works
Ok, I tested what you said, and a few other things.
I tried what you said and using “When Page loaded” and document.addEventListener("DOMContentLoaded", () => {var a = document.getElementById("content");alert(a);});
You’re right nothing works.
And if I use WebViewer without the “Use external browser” option, is there same limitations ?