Files
vkservicesllc.github.io/test/test.html
2018-11-07 10:15:13 -05:00

42 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Cache-Control" content="must-revalidate, no-store, no-cache">
<title>Test Document</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../app/stylesheet.css">
<style>
#demo {
width: 1200px;
height: 100%;
margin: 9px auto;
}
</style>
</head>
<body>
<br />
<button type="button" onclick="loadHTML()">Load LinkBoard</button>
<div id="demo"></div>
<script>
function loadHTML() {
var http = new XMLHttpRequest();
http.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
myFunction(this);
}
};
http.open("GET", "../rpm/linkboard.html", true);
http.send();
}
function myFunction(data) {
document.getElementById("demo").innerHTML = data.responseText;
document.setElementById('fetchScript').addAttribute('src', '../app/functions.js'>;
}
</script>
<script id="fetchScript"></script>
</body>
</html>