|
|
#19214 - 03/31/02 08:34 AM
A handy trick and addon for your Internet Explorer
|
DollarDNS Owner
Registered: 03/04/02
Posts: 1273
Loc: OH, USA
|
Have you ever wanted to view the generated page's source rather than the actual source? What do I mean? Like say there's a script which writes out source to be displayed - and you want to see it's output. Well then, here's a trick invented by my JavaScript guru of a dad. Create a Internet shortcut in your favorites with the following (make sure it's just 1 line):
javascript:var myWin=window.open("","myWin","width=800,height=600,scrollbars,resizable");
var myStr=document.documentElement.outerHTML;
myStr=myStr.replace(/\</g,"<").replace(/\>/g,">").replace(/\r\n/g,"
");
myWin.document.open();
myWin.document.write(myStr);
myWin.document.close();
Then anytime you want to see a page's genereated source, click on that favorite and a page will popup with it.
|
|
Top
|
|
|
|
Sponsored Links
Sponsor 
|
|
| Top |
|
|
|
#19217 - 05/04/02 10:17 PM
Re: A handy trick and addon for your Internet Explorer
|
UGN Supporter
Registered: 03/05/02
Posts: 562
|
I couldnot get this to work.... Create a Internet shortcut in your favorites with the following (make sure it's just 1 line): I could not fit this in the space allowed, 
|
|
Top
|
|
|
|
#19218 - 05/05/02 11:06 AM
Re: A handy trick and addon for your Internet Explorer
|
DollarDNS Owner
Registered: 03/04/02
Posts: 1273
Loc: OH, USA
|
Try this: Create an internet shortcut to anything you want. Go to the shortcut and right-click and hit properties. Paste the following to replace the original URL. Click Ok.
javascript:var myWin=window.open("","myWin","width=800,height=600,scrollbars,resizable");var myStr=document.documentElement.outerHTML;myStr=myStr.replace(/\</g,"<").replace(/\>/g,">").replace(/\r\n/g,"
");myWin.document.open();myWin.document.write(mySt r);myWin.document.close();
|
|
Top
|
|
|
|
|
6876 Members
44 Forums
10736 Topics
45500 Posts
Max Online: 677 @ 06/30/07 10:06 PM
|
|
|
0 Registered (),
10
Guests and
6
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|