Is there a way to get all text from the rendered page with JS?

Posted by Stavros Korokithakis on Stack Overflow See other posts from Stack Overflow or by Stavros Korokithakis
Published on 2010-06-07T03:57:39Z Indexed on 2010/06/07 4:02 UTC
Read the original article Hit count: 308

Filed under:
|
|

Is there an (unobtrusive, to the user) way to get all the text in a page with Javascript? I could get the HTML, parse it, remove all tags, etc, but I'm wondering if there's a way to get the text from the alread rendered page.

To clarify, I don't want to grab text from a selection, I want the entire page.

Thank you!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about text