JS

GET HTML CONTENT WITH JAVASCRIPT FETCH

TO PUT THE LOADED CONTENTS <div id="demoShow"></div>

RUN DEMO <input type="button" value="Load" onclick="load()"/>

DUMMY HTML FORM

01

function load () {   FETCH DUMMY.HTML   fetch("dummy.html")

JAVASCRIPT FETCH

02

  RETURN RESULT AS TEXT   .then((result) => {     if (result.status != 200)     { throw new Error("Bad Response"); }     return result.text();   })

  PUT CONTENT INTO <DIV>   .then((content) => {     document.getElementById     ("demoShow").innerHTML =      content;   }); }