Disable right click on the textbox WITHOUT alert

Oct 16 2019 2:51 PM

I want below javascript to happen but without a alert, can someone help me

function DisableRightClick(event)

{

if (event.button == 2)

{

alert("Right Clicking not allowed!");

}

}


Brought to you by:

Answers (1)