I would like to know if someone has selected text on my page so I can display a context menu right where their cursor is. But I only want to display it if they have selected text by double-clicking the text. Is this possible?
I think it’s possible because the same thing happens in I.E with that blue accelerator button thing.
Wouldn’t this be enough?
http://jsfiddle.net/cLY8r/
Here’s the code if you don’t want to follow the link: