I want to disable click on a certain <div>
so that when you select the text on it, the text doesn't select.
I tried writing onclick="return false;"
like in this fiddle http://jsfiddle.net/mageek/X6hqD/ but it doesn't work.
How can it work? (My goal isn't just disabling the select, it's the whole click).
document.getElementById('div1').onmousedown = new function ("return false");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With