var theValue = document.all("text1").value;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\Downloads\\myjstest.txt",true);
a.WriteLine(theValue);
a.Close();
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\Downloads\\myjstest.txt",true);
a.WriteLine(theValue);
a.Close();
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\Downloads\\myjstest.txt",true);
a.WriteLine(theValue);
a.Close();
----------------------------
正解,注意IE安全设置!
firefox浏览器怎么办?