【求助】大侠,帮我看看这段javaScript代码
Script language="JavaScript">function createSummary(){
win2=open("","window2")
win2.document.open("text/plain")
win2.document.writeln("Title: "+document.title)
win2.document.writeln("Links: "+document.links.length)
win2.document.writeln("anchors: "+document.anchors.length)
win2.document.writeln("forms: "+document.forms.length)
win2.document.writeln("images: "+document.images.length)
win2.document.writeln("applets: "+document.applets.length)
win2.document.writeln("embeds: "+document.embeds.length)
win2.document.close()
}
</script>
调试时,总提示win2.document.open("text/plain")少对象,为什么?谢谢指教!