write the following code to achieve IE back button disabling
<script type="text/javascript">
function noBack() {
window.history.forward();
}
noBack();
window.onload = noBack;
window.onpageshow = function (evt) {
if (evt.persisted) noBack();
}
window.onunload = function () {
void (0);
}
</script>
<script type="text/javascript">
function noBack() {
window.history.forward();
}
noBack();
window.onload = noBack;
window.onpageshow = function (evt) {
if (evt.persisted) noBack();
}
window.onunload = function () {
void (0);
}
</script>
No comments:
Post a Comment