today i created a html doc. to code a login and registration website. My idea was the following: When you create an account, your data should be save in a text file (unsafe). When you log in, the code should compare the input with the data in the file. But when I want to initialize a variable for my File, Internet Explorer shows the following error: SCRIPT445: This object does not support this action. The marked line I have here:
//Here is the layout creation...
<script>
  function login() 
  {
    var username = document.getElementById("txtusername").value;
    var kennwort = document.getElementById("txtpassword").value;
  }
  function register()
  {
    var rusername = document.getElementById("txtrusername").value;
    var remail = document.getElementById("txtremail").value;
    var rkennwort = document.getElementById("txtrpassword").value;
    var rconfirmpassword = document.getElementById("txtrconfirmpassword").value;
    if(rpassword!=rconfirmpassword)
    {
      alert(unescape("The passwords do not match!", "Error"));
      return;
    }
    //This line creates the error
    var file = new File("C:/Users/Konsicoder/Desktop/Data/data.txt");
    //This line creates the error
    alert("Success!", "Success");
  }
</script>
 
     
     
    