How to modify page variable through Javascript?


I have the following variable:

<dmx-value id="pageLoaded" dmx-bind:value="0"></dmx-value>

I need to set that to 1 from Javascript code, such as:

// Do something here
pageLoaded = 1;

I’ve tried doing stuff like:


But it doesn’t give me the contents of the variable, it returns undefined

What am I missing?

Community Page
Last updated: