Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Mouse Special back buttons trap code start
- function PreventBrowserBack(){
- window.location.hash="1";
- window.location.hash="2";
- }
- PreventBrowserBack();
- $(window).on('hashchange', function() {
- window.location.hash="1";
- });
- function ApproveBrowserBack(){
- window.location.hash="1";
- window.location.hash="2";
- }
- //Mouse Special back buttons trap code End
- document.onmousedown = function disableclick(event){
- if(event.button==2)
- {
- alert("Right Click is not allowed");
- return false;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement