Getting HTML asynchronously from another page (with native JavaScript) | Go Make Thingshttps://gomakethings.com/getting-html-asynchronously-from-another-page/
On a recent project, I needed to load the form on a contact page in a modal window on a different page.
That’s typically something you’d turn to jQuery for, but I want to show you can achieve the same effect with native JavaScript.
Asynchronous HTML This approach uses XMLHttpRequest web API.
While this API is supported back to IE 7, HTML requests are only supported in IE10 and higher. #shaarli