darkling235
Programmer
Can anyone tell me how to get the HTML code of a page in a frame?
I'm using
function view_HTML( )
{
var newwin = window.open( "", 'templateview', 'scrollbars=yes,width=600,height=600');
newwin.document.open( );
newwin.document.write("<html><head></head><body>\n");
newwin.document.write("<textarea cols=100 rows=100 readonly=yes wrap=off>");
newwin.document.write( document.body.frame1.innerHTML );
newwin.document.write("</textarea>\n");
newwin.document.close( );
}
but it doesn't seem to want to work. Can someone tell me where I'm going wrong? Thx.
I'm using
function view_HTML( )
{
var newwin = window.open( "", 'templateview', 'scrollbars=yes,width=600,height=600');
newwin.document.open( );
newwin.document.write("<html><head></head><body>\n");
newwin.document.write("<textarea cols=100 rows=100 readonly=yes wrap=off>");
newwin.document.write( document.body.frame1.innerHTML );
newwin.document.write("</textarea>\n");
newwin.document.close( );
}
but it doesn't seem to want to work. Can someone tell me where I'm going wrong? Thx.