Is it possible to use JQuery.Load() to replace the entire document?
ajax, html, javascript, jquery
Solution
$.get("somepage.aspx", function (data) {
document.open();
document.write(data);
document.close();
$.cache = {};
}, "text");
Problem
``` $(document).load("somepage.aspx", function (responseText, textStatus, xhr) { }); ``` This is not working. Is there any way to use the load function to replace the entire document including the head? EDIT: I don't want to refresh my page, I have to use AJAX.