How to select text from another web page?

How to select text from another web page?

How can I do that? How do I use the selector to select from other web pages other than the current page?

I know that you can select all p elements on the current page by doing this:
  1. $("p").doSomething
But what if I want to select from another web page?