EvalJavaScript

Typehandler
DictionaryLCB
LibraryLiveCode Builder
Syntax
EvalJavaScript(<pScript>)
Associationscom.livecode.emscripten
Summary

Evaluate JavaScript code within the browser

Parameters
NameTypeDescription
pScript

The script to evaluate

Example
public handler GetInputText() returns String
	return EvalJavaScript("document.getElementById('myText').value")
end handler
Values
NameTypeDescription
return

A value of any type

Description

Use EvalJavaScript to get the result of running a block of JavaScript code