Currently, I am importing an HTML file into a <div>
in this manner:
function load_content() {
document.getElementById('content').innerHTML = '<object type="text/html" width="100%" height="100%" data="./content.html"></object>';
}
The content is successfully displayed on the page. However, it appears as its own object with a scrollbar on the side (similar to a frame), whereas I want the <div>
s from the external file to display on the page as if they were directly written there.
Is there a way to achieve this without using jQuery?