If it is in the same domain, you can use XmlHttpRequest (which works differently in different browsers) or just add an invisible iframe to the document with an attribute srcthat has the value of the page you want to load, and then get the parent element of the iframe node of the document body object innerHTMLproperty (non-standard, but widely supported).
, - , , .
iframe; :
(function(){
function callback() {
var b = frames['my_hidden_frame'].document.body;
var response = (b.parentElement||b.parentNode).innerHTML;
alert(response);
}
var e = document.createElement('iframe');
e.src = '/some/local/path';
e.id = 'my_hidden_frame';
e.style.height='0px';
e.style.width='0px';
e.style.position='absolute';
e.style.left='-100px';
e.onload=callback;
document.body.appendChild(e);
}());