So, I've already tried the selected answer on this:
How to disable ondblclick in JavaScript?
but it doesn't work, on my end. As per usual, I'm suspecting it has something to do with IE8 (since a lot of my previous problems were related to IE8 issues).
This is how my button looks like, keyBtnEvent is a function that changes the class of the div:
function keyBtnEvent(key, id, event) {
//change class of object with id = 'id'
console.log(event + 'event of keyBtnEvent called');
}
<div id="2Key" class="key"
onmouseup="keyBtnEvent('2','2Key','up')"
onmousedown="keyBtnEvent('2','2Key','down')">
<button>2</button>
</div>
So, how do i disable ondblclick in IE8, without using jquery?