Web Hosting Talk







View Full Version : Javascript introspection?


false_truth
03-20-2005, 07:26 PM
Is there a way (in javascript) where given an object it is possible to find out all the available methods and attributes of that object?
Any help is appreciated, thank you.

itspot
03-21-2005, 03:15 AM
As far as I know, classic JavaScript doesn't have reflection the same way C# does, for example. In any case have a look at this thread http://lists.firepipe.net/pipermail/cwe-lug/2004-September/001934.html