I found this today on a site, and it’s easy to use when using someone else’s object that you just don’t have the info for:
<SCRIPT>
ret = prompt (“Enter object”, “document”);
obj = eval(ret);
var temp = “”;
for (x in obj)
temp += x + “: ” + obj[x] + “\n”;
alert (temp);
</SCRIPT>
OR:
obj = match;
var temp = ”;
for (x in obj)
temp += x + ‘: ‘ + obj[x] + ‘\n’;
alert (temp);
Found on : http://javascript.internet.com/debug-guide.html. The page is OLD (Netscape 2?, Win 3.1?), but it still has some handy tips, like this
Advertisement