<script language="javascript">
var hello = "<html><body><center>hello</center></body></html>";
var r=window.open();//如何把上面的字符串显示在新窗口中
r.document.body.innerText=hello;
</script>
var hello = "<html><body><center>hello</center></body></html>";
var r=window.open();//如何把上面的字符串显示在新窗口中
r.document.body.innerText=hello;
</script>
var hello = "<html><body><center>hello</center></body></html>";
var newWindow=window.open();
newWindow.document.open("text/html");
newWindow.document.write(hello);
newWindow.document.close();
</script>