Is it possible to get the contents of a page and place them in a variable with javascript?

What I'm trying to do is put a page into a frame, and take certain information from that page and put it into a different format, and display it in a different frame.