window.location.replace()
can issue a GET request to target URL and replace the browser "back" history.
Is there any method to issue a POST request to target URL and replace the browser "back" history as well (with/ without jQuery is fine)?
Currently using the following code to issue a POST request, but it does not replace the "back" history:
var actionForm = $('<form>', {'action': 'register.php', 'method': 'post'}).append($('<input>', {'name': 'action', 'value': 'user_register', 'type': 'hidden'}));
actionForm.appendTo('body').submit();