Todo tuyo
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="Jackson666" /> <script type="text/javascript"> function startAjax(){
var xhr = new XMLHttpRequest();
xhr.open("GET",'mostrar.php');
xhr.onreadystatechange=function(){
if(xhr.readyState==4){
if(xhr.status==200){
document.getElementById('rta').innerHTML=eval(xhr.responseText);
}
}
}
xhr.send(null);
}
<a href="javascript:startAjax();">Daleeeeeee
</a>
mostrar.php
EDIT: olvide decirlo, solo anda en firefox