callJsFunctionWithResult

suspend fun <O> callJsFunctionWithResult(js: String, outputMapper: (JsonElement) -> O, vararg args: JsonElement): O?

Evaluate some JavaScript in the browser and return the result via a Future. This the foundation upon which most DOM-querying functions in this class are based.

This uses the same template mechanism as callJsFunction