Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
GssSimonLee authored Sep 20, 2024
1 parent e0cc45c commit d9ff463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Hello From GSS</h1>
event.preventDefault();
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
if (this.readyState == 4) {
var aTag = document.createElement('a');
aTag.href = '/info';
aTag.target = '_blank';
Expand All @@ -27,7 +27,7 @@ <h1>Hello From GSS</h1>
$(aTag).remove();
}
};
xhttp.open("GET", "filename", true);
xhttp.open("GET", "/info", true);
xhttp.send();

});
Expand Down

0 comments on commit d9ff463

Please sign in to comment.