On button click ajax function for redirecting the page.
   $.ajax({
                   type: "POST",
                   url: "logindata.php",
                   data: {request:uname,request1:upass},
                   success: function(){ 
},
complete: function(response)
    {
if((response.responseText)=="Done"){
window.location.assign('enter.php');
}
  $("#status").html("<font color='red'>"+response.responseText+"</font>");
 }
my php code logindata.php
echo "Done";
I AM getting output Done but can't redirect the page
 
     
    