reback.js 259 Bytes

history.pushState(null, "title", "#");
window.addEventListener('load', function() {
    setTimeout(function() {
        window.addEventListener('popstate', function() {
            document.location.href = $("#rebackUrl").val();
        });
    }, 0);
});