<html>
<body>
<script language="JScript">
<!--
function createFile()
{
var myObject, newfile;
myObject = new ActiveXObject("Scripting.FileSystemObject");
newfile = myObject.CreateTextFile("c:\\testing.txt", false);
}
-->
</script>
Create Text file "testing.txt"
<form name="myForm">
<input type="Button" value="Click to Create New File" onClick='createFile()'>
</form>
</body>
</html>
|