
<!DOCTYPE HTML>
<html>
<head>
<title>Testpage</title>
</head>
<script type="text/javascript">
function onLoadFunc() {
alert('Hello World from Client Side');
}
window.addEventListener('load', onLoadFunc);
</script>
<body>
<div>Hello World</div>
</body>
</html>
const http = require('http'),
fs = require('fs'),
port = 80;
const response = (req, res) => {
const path = './index.html';
res.writeHead(200, { 'Content-Type': 'text/html' });
fs.createReadStream(path).pipe(res);
};
http.createServer(response).listen(port);
console.log(`Server is listening on Port ${port}`);