Multiple changes
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Hello
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<div id="demo">
|
||||
<h2>The XMLHttpRequest Object</h2>
|
||||
<button type="button" onclick="loadDoc()">Change Content</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function loadDoc() {
|
||||
const xhttp = new XMLHttpRequest();
|
||||
xhttp.onload = function() {
|
||||
document.getElementById("demo").innerHTML =
|
||||
this.responseText;
|
||||
}
|
||||
xhttp.open("GET", "ajax_info.txt");
|
||||
xhttp.send();
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user