javascript - What is the best way to disallow a click to highlight a DIV? -


i have 2 "buttons" made of div utf-8 arrow character in them.

when user clicks on them, highlight.

what best way suppress highlighting works in browers not affect click?

enter image description here

here's markup:

<div class="arrowcontainer"><div class="arrowleft">...</div></div>  .arrowcontainer .arrowleft {     background-color:#e0e0e0;     width:15px;     padding: 1px 0 0 0;     height: 19px;     text-align: center;     float:left;     margin: 0 2px 0 0;        font-size: 9pt;     cursor: pointer; } 

seems selected (like when select text), try disabling selection option:

*.notselectable{    -moz-user-select: -moz-none;    -khtml-user-select: none;    -webkit-user-select: none;     /*      ie 10.            */    -ms-user-select: none;    user-select: none; } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -