How can one disable a modern browsers default functionality using JQuery or Native JS for going backwards or forwards when scrolling horizontally?
This usually happe
history.pushState(null, null, location.href);
window.onpopstate = function(event) {
history.go(1);
};
Demo: http://jsfiddle.net/DerekL/RgDBQ/show/
You won't be able to go back to the previous webpage, unless you spam the back button or hold down the back button and choose the previous entry.
Note: onpopstate (or event onbeforeunload) doesn't seem to work on iOS.