I would disable some buttons on my HTML test page, (F12, Right-click and Ctrl-U).
My code works, but F12 seems to be enabled and, when he is active (i mean, when i press and i see the "analysis page", Ctrl-U starts to works).
I've post the JavaScript code here, for some advices:
// DX MOUSE
//============
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// F12
//==========
document.onkeypress = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
// alert('No F-12');
return false;
}
};
// CTRL + U
//==============
document.onkeydown = function(e) {
if (e.ctrlKey &&
(e.keyCode === 85)) {
// alert('not allowed');
return false;
}
};
P.S If i disable "alert": twice after clicking, appears popup on Mozilla and the code stops working.