View Full Version : How to show a object method and attribute?

12-18-2007, 05:26 AM
I call a object,it owns many methods and attributes. For example,a object named obj,it owns following method:

I want to know if there is a way which to show its all methods and attributes? If could,how to do it with javascript?

Anyidea will be appreciated!

12-18-2007, 06:30 AM
for(var x in obj)
alert("Property:" + x + "\nValue:" + obj[x]);

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum