Sometimes you have objects you need to see visually.. This is one little function/method of doing that with JavaScript.\r\n\r\n
\r\nfunction dumpVars(obj, inAlert) {\r\n    var out = '';\r\n    for (var i in obj) {\r\n        out += i + ": " + obj[i] + "\n";\r\n    }\r\n\r\n    if(inAlert){alert(out);}\r\n    else\r\n    {\r\n         var pre = document.createElement('pre');\r\n         pre.innerHTML = out;\r\n         document.body.appendChild(pre)\r\n    }\r\n}\r\n