As per my knowledge we can disable ctrl+N key for new window with the following javascript code :
document.onkeydown = function() { alert(event.keyCode) if ((event.keyCode == 78) && (event.ctrlKey)) { alert ("No new window") event.cancelBubble = true; event.returnValue = false; event.keyCode = false; return false; } }
In my case there are 3 frames with one of them fixed (menu bar where I can put this code), but this event is not caught if the focus is in some other frame. How can I implement this restriction globally on a browser window?