title: how to change control from one html page to another in node.js?
body: <p>I need to develop a web app for admin panel using node.js.I just learnt how to display a static html using node.js.</p>
  
  <pre><code>var sys = require("sys"),   
  my_http = require("http");  
  fs = require('fs');
  
  my_http.createServer(function(request,response){     
  fs.readFile("index.html",function(err,data){
      if(err){
          console.log("error occured");
      }
      response.writeHead(200, {'Content-Type': 'text/html','Content- Length':data.length});
      response.write(data);  
      response.end();     
  });
  }).listen(7777);  
  sys.puts("Server Running on 7777");
  </code></pre>
  
  <p>But I am not able to understand how to change the view from one html page to another, like when the login button is clicked. I've used to php earlier where I give the name of the php file in the action of the form. Similarly what should be done in node.js?</p>