code snippet for debugging Javascript script

http://www.javascriptkit.com/jsref/document.shtml


win2=window.open("") //open blank window and write to it
win2.document.open() //open document stream
win2.document.write("<b>Some text</b>")
win2.document.close()

原文地址:https://www.cnblogs.com/cy163/p/200686.html