I've made an empty mynote.txt in the same directory,
and open the following code with Internet Explorer,
and allow to write on hard disk (when IE asked)
but nothing in the text file: mynote.txt after the run.
what is the problem?
<html>
<body>
<script type="text/javascript">
function WriteFile()
{
var fh = fopen("\\mynote.txt", 3);
if(fh!=-1)
{
var str = "Some text goes here...";
fwrite(fh, str);
fclose(fh);
}
}
WriteFile();
</script>
</body>
</html>