index.html
codice:
<script src="function.js"></script>

<a href="javascript:click()">Cliccami</a>

<div id="body">
Contenuto
</div>

function.js

codice:
function click() {
  // RIchiesta AJAX verso get_data.php
  // che ritorna "newdatahtml"
  document.getElementById("body").innerHTML = newdatahtml;
}
get_data.php
codice:
<?php
// faccio le mie cosine e ritorno l'html solo del contenuto del body
?>
Ho capito bene?