refresh page when function is done code example
Example: refresh page js
//with no cache
document.location.reload(true);
//else
document.location.reload();
//with no cache
document.location.reload(true);
//else
document.location.reload();