I would like to see all the properties of a given object.
OK - Here you go:
function popUpProperties(inobj) {Ex.:
op = window.open();
op.document.open('text/plain');
for (objprop in inobj) {
op.document.write(objprop + ' => ' + inobj[objprop] + '\n');
}
op.document.close();
}
popUpProperties(document.forms[0]);
Nice...
Ingen kommentarer:
Send en kommentar