UGN Security
Posted By: olosoft viewing generated javascript - 07/13/02 05:59 PM
this pertains mainly to SR, unless any of you remember, what was that little bit of code that your dad came up with that you put in your favorites to view the actual generated html of a site?
Posted By: SilentRage Re: viewing generated javascript - 07/15/02 12:45 PM
Code
javascript:
var myWin=window.open("","myWin","width=800,height=600,scrollbars,resizable");
var myStr=document.documentElement.outerHTML;
myStr=myStr.replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\r\n/g,"
");
myWin.document.open();
myWin.document.write(myStr);
myWin.document.close();
I broke it up into several lines for readability, but of course you'll have to stream it into one line to create that favorite.
Posted By: olosoft Re: viewing generated javascript - 07/15/02 08:17 PM
ah, thank you very much mr. rage
© UGN Security Forum