Hi,
There is a WebView object and an html text is loaded into it using the :setHtml method.
There is an aaa() function in this text.
If I try to call this function :Eval('aaa()'), then nothing happens.
If I do so:
:Eval('document.getElement.ById("tst").click') - then the aaa() function is normally executed
Why can't I get a direct function call ?
There is a WebView object and an html text is loaded into it using the :setHtml method.
There is an aaa() function in this text.
function aaa() {
   alert(12345) ;
 }If I do so:
<button id='tst' style='display:none;'>Test function</button>
 document.getElementById('tst').onclick = aaa ;
 function aaa() {
   alert(12345) ;
 }Why can't I get a direct function call ?