After trying, I noticed that the back page briefly appears for 1 or 2 seconds before returning to the current page. I want to completely avoid going to the back page, even for just a second.
<script type="text/javascript">
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
</script>
I implemented this code in an Asp.net .aspx file.
Do you know of any other methods to achieve this?