"Get source" function

Giganews Newsgroups
Subject: "Get source" function
Posted by:  David Cohen (dav…@paralegaltech.com)
Date: Fri, 11 Jul 2003

Is there a function that returns the html source of a given page as a

Preferably, I'm looking for a function that takes a URL as an argument.
  Alternatively, is there such a function that takes a handle to a
window (in which the desired page is open) as an argument?

Thank you,