Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p id="demo">Fetch a file to change this text.</p> <script> let file = "fetch_info.txt" fetch (file) .then(x => x.text()) .then(y => document.getElementById("demo").innerHTML = y); </script> </body> </html>