Javascript / Ajax - detect change to a file and re-direct page

Job ID: 31579429

Budget: $10 – $17 USD

Hi,
I need someone to write a very simple script.
It shows an HTML loading page (which I have already) and monitors a (single line) text file on the web server for a change. When a change is detected in the file then it re-directs to a different page.
This is kind of a good example but I'm not using JSON.
https://stackoverflow.com/questions/37469178/how-to-refresh-a-page-whenever-my-json-data-file-changes
Related categories: JavaScript AJAX jQuery / Prototype