Do javascript function in browser widget?

Keith Clarke keith.clarke at me.com
Tue Nov 6 04:10:59 EST 2018


Folks,
I’ve found a few examples of simple inline script injection to the browser widget, such as do "document.body.style.background = ‘red';" in widget "Browser” 

Is it possible to inject a multi-line javascript function - with variables definition, loops, etc - in this fashion or would the function need to be injected into the page within the browser as markup and then called from a one-line script from LiveCode?

Thanks & regards,
Keith 



More information about the Use-livecode mailing list