Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could do this for a long time by calling Event::preventDefault method on MOUSEDOWN event. This is just the same using CSS.

Obviously, this is useful for a lot of things, disabling selection being only one.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: