Thanks guys, but I think from your answers I need explain my question in more specific detail:
I have generated a new window / page from a submitted form.
EXAMPLE: the user enters a url and through asp using the InetCtls.Inet controls or Microsoft.XMLHTTP I can dynamically generate a new window which displays the page the user enters.
I can also produce the source of the page in the new window when I require it.
Using the following javascript I can grab the innerHTML from the page (generated source that the browser displays. NOT the regular view source) and display it on the current page:
<SCRIPT LANGUAGE= Javascript>
function show()
{
z = window();
z.document.write('<pre>' + repl('<html>\n' + document.documentElement.innerHTML + '\n</html>'));
z.document.close();
}
function repl(x)
{
x=x.replace(/&/g,'&');
x=x.replace(/>/g,'>');
x=x.replace(/</g,'<');
return x;
}
</SCRIPT>
How can I grab the generated source from the page using ASP?
I hope this clears things up.
Thanks in advance,
Matt Scotney