How can I inspect an Object in an alert box? Normally alerting an Object just throws the nodename:
alert(document);
But I want to get the p
var str = ""; for(var k in obj) if (obj.hasOwnProperty(k)) //omit this test if you want to see built-in properties str += k + " = " + obj[k] + "\n"; alert(str);