What are some ways to get text from a text-only webpage using Javascript? [closed]

I want to get all the HTML of a webpage (that is located on the internet) with its URL and store it inside a variable for later processing using only JavaScript.

In what way can I do this? Which method or strategy??