javascript get html content from external url

When the server provides them, the JavaScript can use the data to update the page, typically by using DOM manipulation APIs. This URL has a simple TXT format, just a pure numbers, but updated 4-5 per sec. How to set the default value for an HTML