title: Removing all tags (html,script,DOCTYPE) from a page and loading another page using jQuery
body: <p>Here is my problem.  I am throwing a $.post request on a page which returns an error message if the login was unsuccessful and returns me the homepage if login was successful.</p>
  
  <p>What I am trying here is to remove the entire contents of the page including the   and  tags and replace them with the new content that i just received from the $.post request (The post request is a normal page with all the tags intact).</p>
  
  <p>Is this possible by using jQuery?  If not, can it be done by pure javascript? </p>