Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

equivalent method load jquery with javascript

window.onload = () => {
    fetch('/path/to/page.html')
    .then(data => {
      return data.text()
    })
    .then( data => {
      document.getElementById("parentContainer").innerHTML = data;
    })
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #equivalent #method #load #jquery #javascript
ADD COMMENT
Topic
Name
7+5 =