Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script> function loadXMLDoc() { xmlhttp=null; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } if (xmlhttp!=null) { xmlhttp.open("GET.html","xmlhttp_info.txt",false); xmlhttp.send(); document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } else { alert("Your browser does not support XMLHTTP."); } } </script> </head> <body> <h2>Using the XMLHttpRequest object</h2> <div id="myDiv"></div> <button type="button" onclick="loadXMLDoc()">Change Content</button> </body> <!-- Mirrored from www.w3schools.com/dom/tryit.asp?filename=try_dom_xmlhttprequest_asyncfalse by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:45:54 GMT --> </html>
Result:
Try it Yourself - © w3schools.com