I'm looking for a way to retrieve the HTML content of a webpage using JavaScript, even if it's on a different domain. Similar to what wget does but in JavaScript. I intend to use this for web crawling purposes.
Could anyone guide me on how to fetch and store the content of a webpage into a string using JavaScript, assuming I have the URL?