[Project_owners] collecting text near a mouse click

John Woodell woodie at netpress.com
Thu May 4 12:00:52 EDT 2006

I have an extension that process a selection...
var str = new String(window._content.document.getSelection());

I'd like to be able to just click on the some part of the page,
and collect the text just before and after the click coordinates,
then to something with that text from a right-click menu.

Has anybody figured out a way to do this?

More information about the Project_owners mailing list