Update test.html
This commit is contained in:
@@ -19,23 +19,25 @@
|
|||||||
<div id="demo"></div>
|
<div id="demo"></div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function loadHTML() {
|
function loadHTML() {
|
||||||
var http = new XMLHttpRequest();
|
var http = new XMLHttpRequest();
|
||||||
http.onreadystatechange = function() {
|
http.onreadystatechange = function() {
|
||||||
if (this.readyState == 4 && this.status == 200) {
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
myFunction(this);
|
myFunction(this);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
http.open("GET", "../rpm/linkboard.html", true);
|
http.open("GET", "../rpm/linkboard.html", true);
|
||||||
http.send();
|
http.send();
|
||||||
}
|
}
|
||||||
function myFunction(data) {
|
function myFunction(data) {
|
||||||
document.getElementById("demo").innerHTML = data.responseText;
|
document.getElementById("demo").innerHTML = data.responseText;
|
||||||
document.getElementById('fetchScript').addAttribute('src', '../app/functions.js'>;
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script id="fetchScript"></script>
|
<script id="fetchScript"></script>
|
||||||
|
<script>
|
||||||
|
document.getElementById('fetchScript').addAttribute('src', '../app/functions.js'>;
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user