In IE for text files you can use the default donwload behavior which loads a text file into a string. You can set the innerHTML or innerText of a div element to the contents of this string.
Search MSDN for details of default behaviors.
For HTML pages you can use the msxml2.xmlhttp class to open a connection to a server and retrieve the contents of a file again setting the innerText of an element to its value. The details are in the help files for msxml core services.
I think there is a similar technique for Mozilla.
--
Joe
|