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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -