User is on a webpage , uses his mouse to select stuff, how can i use javascript to know what has been selected?
A:
If you're talking about the user dragging his mouse over text so that it's highlighted, use the Selection and Range objects (for Mozilla) and Selection and TextRange objects (for IE).
Shoko
2009-11-09 04:11:33