September 16, 2011

Simplest way to disable Alt-Left key event to stop browser back event

There is a very simple way to disable Alt-Left Key event which is used to stop back browser event.
Download this file "shortcut.js" from this link and include it into the page.

Now just right below code to stop or control this event:

shortcut.add("Alt+left",function() {
callFunc();
});

function callFunc()
{
return false;
}


It will disable the key event on browser and will stop back event.

No comments:

Post a Comment