请告诉我我的代码有什么问题!!!!我试图获取文本区域内容并将其保存到现有文本文件中
<textarea rows='10' cols='80' id='passForm' ></textarea>
<button onclick="WriteToFile()">Post</button>
<script type ="text/javascript">
function WriteToFile(passForm) {
set fso = CreateObject("Scripting.FileSystemObject");
set s = fso.CreateTextFile("E:/MyStuff/test.txt", True);
s.writeline(document.passForm.input1.value);
s.Close();
}
</script>