This commit is contained in:
wanlop run 2024-03-24 14:37:28 +07:00
parent 41e92f542d
commit 655633a57e
10 changed files with 125 additions and 49 deletions

27
webs/index.htm Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<script>
function readFile(filePath) {
var result = null;
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", filePath, false);
xmlhttp.send();
if (xmlhttp.status==200) {
result = xmlhttp.responseText;
}
xmlhttp.abort();
return result;
}
console.log("Test readFile " + readFile("?test-hurr"))
</script>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>