well, wouldn't it be easier to just open the same page in a new window? anyway, i suppose you could do something like this:
Code:
function openIt() {
var w = window.open('','w','');
var h = document.getElementsByTagName("body")[0].innerHTML;
with (w.document) {
open();
writeln('<html><head><title>title</title></head><body>');
writeln(h);
writeln('</body></html>');
close();
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.