0

Is there any way to download an HTML string (code of a given web page) using JavaScript (despite CORS)? Something like:

let url = "http://example.com";
fetch(url).then(a => document.write(a)).catch(a => document.write("Error"));
Darryl Noakes
  • 2,207
  • 1
  • 9
  • 27
Tsko
  • 33
  • 6

0 Answers0