Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript async fetch file html

async function () {
element.innerHTML = await (await fetch('./filetofetch.html')).text();
}
 
PREVIOUS NEXT
Tagged: #javascript #async #fetch #file #html
ADD COMMENT
Topic
Name
5+8 =