Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<button type="button" onclick="loadfile()">button</button>
<div id="test"></div>
<script>
function loadfile() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("test").innerHTML = this.responseText;
}
};
xhttp.open("GET", "/project/User1/sl_tu3LbAGhjM20203432/file.php", true);
xhttp.send();
}
</script>
</body>
</html>
The most helpful AJAX solutions