<div id="k">
</div>
<a href="javascript://" onclick="loadpage(this);">Загрузить</a>
<script type="text/javascript">
var counter = 1;
function loadpage(a) {
if (counter == 16) a.parentNode.removeChild(a);
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState != 4 || xhr.status != 200) return;
var page = document.createElement("DIV");
page.innerHTML = xhr.responseText;
document.getElementById("k").appendChild(page);
};
xhr.open("GET", "/k" + counter++ + ".html", true);
xhr.send(null);
}
</script>