var xmlrequest = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
function test(){
var action = document.forms[0].action;
xmlrequest.open("GET", action);
xmlrequest.onreadystatechange = callback;
xmlrequest.send(null);
}
function callback(){
if (xmlrequest.readyState == 4) {
if (xmlrequest.status == 200) {
var returntext = xmlrequest.responseText;
var show = document.getElementById("test");
show.innerHTML = "<table><tbody><tr><td>"+returntext+"</td></tr></tbody></table>";
}
}
}