Browser widget and javascript

jbv at souslelogo.com jbv at souslelogo.com
Sat Jun 28 10:07:34 EDT 2025


Hi list,

When using a browser widget, I can get the whole code of a
page displayed in the browser with :
    put the htmlText of widget "Browser" into myHtml

I can also run chunks of javascript inside the browser,
even if the code isn't there, for instance :
    do "var T=document.getElementsByClassName('xyz');alert(T.length);" in 
widget "Browser"

But can I get some value generated via javascript back
into the LC script and use it as a variable ?
For instance in the above example, can I get the T.length
value in a variable inside the LC script, after the chunk
of js has ran ?

Thank you in advance.
jbv


More information about the use-livecode mailing list