Thursday, December 6, 2007

Javascript show all properties of object

function showObject(object o)
{
var s = "";
for(var i in o)
s += i + ": " + o[i] + "\n";
alert(s);
}

1 comment:

Lubo said...

Events and attaching to events in javascript:

http://msdn2.microsoft.com/en-us/library/ms535873.aspx#

Attaching to event:

http://msdn2.microsoft.com/en-us/library/ms536343.aspx