Skip to main content

WindowScope

WLJS
Execution environment
Notebook`Interpreter`
Context
WindowScope[name_String] _JSObject

reads out Javascript variable available from the global scope and returns it. This is pure WLJS function

It allows another way of WL JS communication

Example

Read JS variable

Firstly let us create it

cell 1
.js

window.variable = [0,1,2,3,4,5];

now read

FrontFetch[WindowScope["variable"]]