HTML Page < html > < head > < title > welcome </ title > < script language = "javascript" > reqObj=null; function varify (){ document. getElementById ("res").innerHTML=" Checking "; if (window.XMLHttpRequest){ reqObj=new XMLHttpRequest (); }else { reqObj=new ActiveXObject ("Microsoft.XMLHTTP"); } reqObj.onreadystatechange=process; reqObj. open ("POST","./a.jsp?id="+document. getElementById ("username").value,true); reqObj. send (null); } function process (){ if (reqObj.readyState== 4 ){ document. getElementById ("res").innerHTML=reqObj.responseText; } } </ script > </ head > < body >
Future driven solutions.