Editor Arrow Download Open
<html> <body> <script language="javascript" type="text/javascript" > function send_with_ajax(){ if (window.XMLHttpRequest || window.ActiveXObject) { if (window.ActiveXObject) { try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch(exception) { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } } else { xhr = new XMLHttpRequest(); } } else { alert("Your browser does not support XMLHTTP Request...!"); } xhr.open("GET", "ajax_demo.txt", true); // Make sure file is in same server xhr.send(null); xhr.onload = function() { if (xhr.readyState == xhr.DONE) { alert("Current State : " + xhr.readyState + "\n\nResponse : " + xhr.responseText); } }; } </script> <button onClick="send_with_ajax()">Get Contain</button> </body> </html>
  Preview Arrow