We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d00f8 commit 708f5b7Copy full SHA for 708f5b7
client/src/main/js/scripts/main.js
@@ -2,9 +2,9 @@ var postRequest = new XMLHttpRequest();
2
postRequest.onreadystatechange = function () {
3
if (postRequest.readyState == 4) {
4
if (postRequest.status == 200) {
5
- document.getElementById("result").innerText = postRequest.responseText;
+ document.getElementById("result").textContent = postRequest.responseText;
6
} else {
7
- document.getElementById("result").innerTest = "An error has occurred";
+ document.getElementById("result").textContent = "An error has occurred";
8
}
9
10
};
0 commit comments