Click to See Complete Forum and Search --> : Getting all properties of javascript object


computerzworld
06-17-2009, 01:47 AM
Hello,
I want to grab all properties of javascript object. Lets say I am having an object of textbox,span,div,link etc. in document.getElementById('elementId'). And I want to grab all the properties of this object like its attributes and values. How can I get these values? Please help me. Thanks in advance.

Weedpacket
06-17-2009, 07:18 AM
for(propertyname in theobject)
{.....theobject[propertyname].....}