javascript: function showBorders(wndw){ void(tags=wndw.document.all?wndw.document.all.tags('TABLE'):wndw.document.getElementsByTagName('TABLE')); for(var i=0;i<tags.length;i++)void(tags[i].border=(tags[i].border=='0'?'1':'0')); } void(frms=window.frames); if(frms.length==0){ showBorders(window); } else{ for(iQA=0;iQA<frms.length;iQA++){ showBorders(frms[iQA]); } }
View Document Object Model:
View dynamically created source:
javascript:( function(){ function htmlEscape(s){ s=s.replace(/&/g,'&'); s=s.replace(/>/g,'>'); s=s.replace(/</g,'<'); return s; } x=window.open(); x.document.write('<pre>' + htmlEscape('<html>\n' + document.documentElement.innerHTML + '\n</html>')); x.document.close(); } )();
See also: