I am trying to create a json file from javascript . since i didnt get the code i am trying to create a text file as ..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="javascript">
function textFile()
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile("D:\\Test.txt", true);
s.WriteLine('Hello JavaScript');
s.Close();
}
</script>
</head>
<body onLoad="textFile()">
</body>
</html>
This code works only in IE ... please help me to work this code at least in chrome.. Please help me to create json file also...