11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

var fso, filehandle;<br />

//-->><br />

fso = new ActiveXObject("Scripting.FileSystemObject");<br />

filehandle = fso.CreateTextFile("c:\\test.txt", true);<br />

filehandle.Write(document.all("filecontents").value);<br />

filehandle.Close();<br />

<br />

<br />

<br />

Simple File Editor Modifying c:\test.txt<br />

<br />

<br />

HTAs are powerful.<br />

<br />

<br />

&nbsp;<br />

&nbsp;<br />

<br />

<br />

<br />

<strong>The</strong>re are some significant drawbacks to using HTAs. First, they work only under IE5+ in<br />

Windows systems. <strong>Second</strong>, because they are allowed unfettered access to local operating

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!