<script>
window.onload = function(){
var elem = document.getElementByTagName("a");
elem.onclick = function(){
var url = this.href;
var method = "GET";
elem.open(method,urrl);
elem.send(null);
elem.onreadystatechange = function(){
if(elem.readystate == 4){
if(elem.state == 200 || elem.state == 304){
alert(elem.requestText);
}
}
}
}