I am fairly new to HTML, and I am trying to make a HTML page that constantly reads a text file, so that when the contents of the text file are changed, the HTML page will also change to reflect it. My current code is as follows;
<!DOCTYPE html>
<html>
<title>File Contents</title>
<h1>File contents of input.txt<br>Below are the contents of the file input.txt, in the same directory as this file</h1>
<div><object data="Input.txt"></object></div>
</html>
However, this script only loads the text file once, and any subsequent modifications will not be shown.
Is there any way to do this with just HTML and Javascript?