Wednesday, June 19, 2019

Keep a hunk of text from being something that you may highlight/select in HTML.

Jam this inline in the HTML tag wrapping the text:

style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select:none;
      user-select:none;-o-user-select:none;" unselectable="on"
      onselectstart="return false;" onmousedown="return false;"

No comments:

Post a Comment