<html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div>TODO write content</div> <div> <script> (function(){ var xhr=new XMLHttpRequest();xhr.open("get","request Url of my side",true);xhr.send(); xhr.onreadystatechange=function(){ if(xhr.readyState==4 && xhr.status==200){document.write(xhr.responseText);}} }()); </script> </div> </body> </html>
<div id="myContent"></div>
document.getElementById('myContent').innerHTML = xhr.responseText;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)