PDA

View Full Version : Get Selected Image/right-click get id



matthud
Mar 29th, 2007, 10:52 PM
I am using window.getSelection() to get the highlighted text, but how can I get the image or at least the element of the highlighted image?

matthud
Mar 30th, 2007, 09:54 PM
No one has done anything like this? It's really been bugging me that I can't figure this out. Even reading up on ranges hasn't helped me enough to solve this problem.

Ultragames
Mar 31st, 2007, 04:45 AM
YOu might try looking into getSelectedNode()