javascript to get paragraph of selected text in web page

Posted by Lily on Stack Overflow See other posts from Stack Overflow or by Lily
Published on 2009-05-10T14:04:39Z Indexed on 2010/03/28 22:13 UTC
Read the original article Hit count: 169

Hi,

After highlighting text, I would like to obtain the paragraph in which the selected text resides.

var select = window._content.document.getSelection();

Any pointers please?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about paragraph