Search This Blog

Thursday, April 05, 2007

Debug javascript object

/* This is code to debug any javascript object. Just assign obj the variable you want to debug */

var obj = [object to debug]
var temp = "";
for (x in obj)
{
    temp += x + ": " + obj[x] + "\n-----\n";
}
alert (temp);

No comments: