From: Chris Morris Date: 2003-05-07T22:08:37+09:00 Subject: Re: Howto get source code of displayed IE-pages? > Is there any API to get the source code (i.e. the html) > of the page currently shown inside an Internet Explorer > window? > > I want to do a kind of logging of all displayed pages. > If such an API existed, i could poll and save the changes > to disk. I want to do this with win32ole if possible. AFAIK, the API is the COM interface, which requires win32ole, of course. Pretty much any element in the DOM have an outerHTML and innerHTML property - if you get at the top of the DOM, you should get the html for the whole page. http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/inte rnetexplorer.asp http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_docume nt.asp Chris http://clabs.org/blog