How can I prevent text selection on Mousedown event?

242 views   Javascript  2020.09.17


I'm having trouble in dealing with mouse events, because when I double-click on span element it selects text but thats not what I want. Here is my simple program: <div>Learning mouse events is fun <span onclick="alert('Clicked')"> Click here. </span> for more. </div> I want that, When I click on that element, work as button not a text, briefly I want to disable selection. Show me best way!

Answers, ideas and Comments

» 46 ideas

 • 4 days ago
Cialis Kaufen Forum »

0 



 • 4 days ago
http://prednisonebuyon.com/ - Prednisone »

0 



 • 1 week ago
Priligy Et Cialis »

0 



 • 1 week ago
http://buyneurontine.com/ - Neurontine »

0 



 • 1 week ago
https://buyneurontine.com/ - Neurontine »

0 



 • 1 week ago
Does Zithromax Affect Birth Control Pills »

0 



 • 1 week ago
0 



 • 1 week ago
0 



 • 1 week ago
kamagra uk prices »

0 



 • 2 weeks ago
https://buyplaquenilcv.com/ - plaquenil and corona »

0 



 • 2 weeks ago
Tamoxifen Order Online »

0 



 • 2 weeks ago
http://buyzithromaxinf.com/ - can you buy zithromax in stores »

0 



 • 3 weeks ago
We spent a lot of time at her home. Maybe so her mother could keep an eye on us. Mrs. Spencer made sure to be around, offering drinks, snacks, chit chat. I noticed that she was fairly young herself. Granted at my age, anyone over 25 was old, but she was probably mid-30s, divorced. If she was a indiction of how Carley would develop, maybe I should wait. Mrs. Spencer had fuller breasts and a nice butt. She appeared to be in great shape for her "advanced" age. I knew she was keeping an eye on me as much as I was on her and her younger daughter. Her eldest, Sharon was away at college at the time. With Mrs. Spencer around we mostly limited ourselves to holding hands and sneaking in a few light kisses. One day Mrs. Spencer caught us by surprise walking in as I'd slid my hand up from Carley's stomach to rub her right breast through her shirt. She didn't really need a bra yet, so I could feel her nipple, hard, through her shirt. Just this much contact had me hard also. https://sites.google.com/view/mLypT6YSjk6y4AhW https://sites.google.com/view/fooKqz20kFQe7HFd  »

0 



 • 3 weeks ago
0 



 • 3 weeks ago
http://buypriligyhop.com/ - Priligy »

0 



In order to go deep, share any relevant idea or posting solution to some questions, You have to sign in or create a new account if you don't have one. And get Donnekted(connected)




Log in now  Join the Team

This site is for sharing topics, questions, answers, experiences or other contents related to different stuffs, especially technology. For existing users, They can make any topic(post) to discuss about in hope for ideas or any result from other people from different communities. In order to get involved, Get donnekted(connected) by Joining us here!