I want to create a text file in local mode, when I look at a button click in Google Chrome, it shows an error, for example, ActiveXObject is not defined , and when I look at a button click in safari, it shows an error, for example it cannot find a variable: ActiveXObject . anyone can help me. How can I achieve and create a .Thanq file
<script> function createFile() { var object = new ActiveXObject("Scripting.FileSystemObject"); var file = object.CreateTextFile("C:\\Hello.txt", true); file.WriteLine('Hello World'); alert('Filecreated'); file.WriteLine('Hope is a thing with feathers, that perches on the soul.'); file.Close(); } </script> <input type="Button" value="Create File" onClick='createFile()'>
javascript sencha-touch-2
Ramesh Lamani Jun 19 '12 at 13:08 2012-06-19 13:08
source share