Getting a globallly defined variable in browser



i am trying to get a globally defined variable from a chrome browser.

lets say I have define a variable in the DOM (var foo=1;)

how can I retrieve this variable? (or even set it)

i have tried everything including writing a custom script but it simply does not work.

much appreciated for your help!


Hi Gilles,
Are you trying to get the value from a variable defined in Javascript?
Please provide more details and the link to the page you try to get the variable from.


Hi Ashapkina,

unfortunately i cannot share the page with you as it is located behind a login.
I have attached a screenshot of how i access it in the chrome console


In such case, describe you process in more details to understand your use case.

closed #5