Replace HTML page with contents retrieved via AJAX
The simplest way is to set the new HTML content using:
document.open();document.write(newContent);document.close();
try this with jQuery:
$('body').load( url,[data],[callback] );
Read more at docs.jquery.com / Ajax / load