Olá Elaine, boa noite!
Eu faço isso da seguinte forma:
Primeiro, insira o código abaixo no HEAD da sua página.
<script type="text/javascript">
try {xmlhttp = new XMLHttpRequest();} catch(ee) {
try{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {
try{xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch(E)
{xmlhttp = false;}
}
}
function carrega(_idContainer, _endereco){
var tag_container = document.getElementById(_idContainer);
tag_container.innerHTML = '';
xmlhttp.open('GET',_endereco,true);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4){
retorno = xmlhttp.responseText;
tag_container.innerHTML = retorno;
}
}
xmlhttp.send(null)
}
</script>
<a href="javascript:carrega('nomeDaDiv','urlDaPaginaAbrirNaDiv')">Link</a>
Espero ter ajudado!!
Boa noite,
--------------------------------------------
Danilo Bomfim
dan...@roxie.com.br
(19) 9833-2051