Subj : Using Rhino to report on JS variable/function scoping To : netscape.public.mozilla.jseng From : mark@umii.co.uk (Mark__e) Date : Tue Sep 02 2003 07:34 am I am trying to achieve the following. From any given Javascript I need to identify any variables and functions that have global scope within the context of the Javascript I am evaluating. The Javascript will be extracted from web pages so will have references to the DOM in there as well. This being the case I do not want to actually run the script, just extract the information I need when it becomes available. I could not see any way to achieve this as the API stands, so I have started working back through the source assuming that this information must be available at some point. If anyone could offer any advice/pointers to give me a bit of a kickstart (even if it's don't bother) it would be greatly appreciated. Mark .