How do I load an HTML page in a <div> using JavaScript?

The Solution to How do I load an HTML page in a <div> using JavaScript? is


I finally found the answer to my problem. The solution is

function load_home() {
     document.getElementById("content").innerHTML='<object type="text/html" data="home.html" ></object>';
}

~ Answered on 2013-07-14 19:16:44


Most Viewed Questions: