I have an ajax response, that returns the full html of a webpage, like this:
<!DOCTYPE>
<html>
<head>
<!-- head content -->
</head>
<body>
<!-- body content -->
</body>
</html>
So I want all of this replacing the document of my calling page after the ajax call. How do I do this?