вот ответ на твой вопросfunction showProp(node,toFind) { .var result='<B>'+node+'</B><BR>'; .for(var prop in node) .{.try ..{.if(prop==toFind) ....result+='<FONT COLOR=BLUE>'+prop+'='+node[prop]+"</FONT><BR>"; ...else.result+=prop+'='+node[prop]+"<BR>"; ..}catch(e) ..{ ...result+=prop+'=<FONT COLOR=RED>'+e+'</FONT><BR>'; ..} .} .var neWin=window.open(""); .neWin.document.write("<HTML><HEAD><TITLE>"+node+"</TITLE></HEAD><BODY><PRE>"+result+"</PRE></BODY></HTML>");
.return false; }; |