Is there a way to get all the Javascript variables on the page?
For example, Firebug can view all JS-vars, so I know that this is possible, but I'm not sure how to do it.
To get global variables:
var x=[]; for (var i in window){ x.push(i) }; alert(x.join("\\"));
They are stored in the window object.
You can see more information here:
http://seanmonstar.com/post/708979238/iterating-global-variables-in-internet-explorer
, , , ( ) , , .
, , , . Firebug , , .
Source: https://habr.com/ru/post/1774128/More articles:How to get an ordered presentation? - tsqlWhat does โNo Native for Message Converterโ mean? - soapBest way for python table? - pythonWhy can't TWiki find a module that is already in @INC? - perlMacintosh Python: 64-bit and 32-bit issues - pythonHow can I get rid of this osascript output? - bashHow to dynamically assign a property in a collection - c #How big is a billion triples? - comparisonchrome alternative for firebug evaluation console? - javascriptJBPM - get a list of all tasks - javaAll Articles