fetch.html
390 Bytes
<!DOCTYPE html>
<html>
<body>
<input type="button" value="fetch" onclick="
/*
fetch('css').then(function(response){
response.text().then(function(text){
alert(text);
})
})
*/
function callbackme(){
console.log('response end');
}
fetch('html').then(callbackme); //
console.log(1);
console.log(2);
">
</body>
</html>