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
How about alert(JSON.stringify(object)) with a modern browser?
In case of TypeError: Converting circular structure to JSON, here are more options: How to serialize DOM node to JSON even if there are circular references?
The documentation: JSON.stringify() provides info on formatting or prettifying the output.