Does anyone know of a way to retrieve the output of a webpage and place the output in the current web page (not using iframes)?

For example, here is a simple web page (test.html):

<html>
This is just a test
</html>

I would like to take the output of this page and insert into my current page:

<div id="test">
This is just a test
</div>

Thanks in advance,

Mapper

Would something like this work:

function testIIS(){
var http1 = getHTTPObject();
http1.open("GET", "http://devsptl/test2/test.txt", true);

http1.onreadystatechange = function() {
	if (http1.readyState == 4) {
		alert(http1.responseText);
	}
    }

}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.