disable click with css code example
Example 1: disable click css
.avoid-clicks {
pointer-events: none;
}
Example 2: css disable button click
button.disabled{
pointer-events: none;
}
Example 3: disable right click with css
document.oncontextmenu = new Function("return false;");