0
I’m making the following code:
if(xhr.status == 200){
console.log(xhr.responseText);
window.location.reload();
}
only when I do this, it feels like it enters an eternal loop and crashes my server. How do I make it refresh the page just once and stop?
Yes, because the loop is getting in the way
– Francis Vagner da Luz
The responseText is only to show me the data I’m receiving. I don’t need to perform any function. I’ll even take it out of the code later..
– Francis Vagner da Luz