Skip to content

Instantly share code, notes, and snippets.

@pranav1hivarekar
Last active April 2, 2020 16:08
Show Gist options
  • Save pranav1hivarekar/48a61d55ca1e67b5a064d63194cfc5e2 to your computer and use it in GitHub Desktop.
Save pranav1hivarekar/48a61d55ca1e67b5a064d63194cfc5e2 to your computer and use it in GitHub Desktop.
<html>
<body>
<h1>The XMLHttpRequest Object</h1>
<button type="button" onclick="loadDoc()">Request data</button>
<p id="demo"></p>
<script>
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("GET", "https://vwvi1tb12oy1y1kxr1113icev51wpl.burpcollaborator.net", true);
xhttp.send();
</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment