Is there any way to differentiate between clicking a div element and selecting its content,
What I am looking for is to trigger click action only if the div was clicked but not when its contents were selected
<div onClick="funA">
Allow content to be copied if selected, else perform funA when clicked
</div>
Current onClick behavior triggers when I try to select the content and copy it, as soon as i unpress the click, But I want to not trigger funA or detect its selected and control it somehow. I hope the question is clear enough, else I will add more specifics to the quesiton.