html - How do I disable text selection with CSS or JavaScript? -


possible duplicate:
css rule disable text selection highlighting

i making html/css/jquery gallery, several pages.

i indeed have "next" button, simple link jquery click listener.

the problem if user click button several times, text of button selected, , full line of text. in darky design, ugly , nonsensical.

so here question: can disable text selection on html? if not, i'll terribly miss flash , high level of configuration on textfields...

<div   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;">     blabla </div> 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -