/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function dump(obj) { var out = ''; if(obj && typeof(obj) == 'object'){ for (var i in obj) { out += i + ": " + obj[i] + "\n"; } } else { out = obj; } alert(out); }