Jump to content
Server Maintenance This Week. ×

javascript


Franco Pagano

This topic is 3183 days old. Please don't post here. Open a new topic instead.

Recommended Posts

how to adapt for OS X to create a text file on  the site folder

Thanks to all

<HTML> 
<HEAD> 

<SCRIPT language="JavaScript">

function WriteFile() 
{
   var fso  = new ActiveXObject("Scripting.FileSystemObject"); 


   var fh = fso.CreateTextFile("c:\\Testx.txt", true); 

   fh.WriteLine("Some text goes here..."); 
   fh.Close(); 
}

</SCRIPT>
</HEAD>

<BODY>
<P>
<SCRIPT language="JavaScript">  WriteFile(); </SCRIPT>
</P>
</BODY>
</HTML>

 

Link to comment
Share on other sites

This topic is 3183 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.