Answers for "remove ability to highlight text with clciking angular"

20

no select css

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}
Posted by: Guest on March-29-2020
0

disable right click with css

document.oncontextmenu = new Function("return false;");
Posted by: Guest on October-23-2020

Browse Popular Code Answers by Language