<script>
window.onload = function () {
if (typeof history.pushState === "function") {
history.pushState("jibberish", null, null);
window.onpopstate = function () {
history.pushState('newjibberish', null, null);
// Handle the back (or forward) buttons here
// Will NOT handle refresh, use onbeforeunload for this.
var url = '@Url.Content("~/Account/LogOff")';
$.ajax({
url: url,
cache: false
});
};
}
}
</script>
window.onload = function () {
if (typeof history.pushState === "function") {
history.pushState("jibberish", null, null);
window.onpopstate = function () {
history.pushState('newjibberish', null, null);
// Handle the back (or forward) buttons here
// Will NOT handle refresh, use onbeforeunload for this.
var url = '@Url.Content("~/Account/LogOff")';
$.ajax({
url: url,
cache: false
});
};
}
}
</script>