sorry,我又来,有关writeIn的问题,老出错,帮看看!!
einyu 2004-05-07 09:05:59 <html>
<head>
<title>open的应用</title>
<Script Language = "JavaScript">
function NewOne()
{
document.open()
document.writeIn("<BODY>")
document.writeIn("<PRE>")
document.writeIn("<h2>")
document.writeIn("床前明月光")
document.writeIn("疑似地上霜")
document.writeIn("举头望明月")
document.writeIn("低头思故乡")
document.writeIn("</h2>")
document.writeIn("</PRE>")
}
</Script>
</head>
<body>
这是旧的内容<br>
<form name = "ThisForm">
<input type = submit name = "Press" value = "打开新文件" OnClick = "NewOne()">
</form>
</body>
</html>
目的:——点“打开新文件” 按钮,就有上面代码中的诗出现!!!!
是本生学习一本书的代码,搞不明白为什么不行的啊?
错误提示:
对象不支持此属性或方法。为什么?????
麻烦帮忙!!!