XHR

Code:

        function envoi() {
            var xhr = new XMLHttpRequest()
            xhr.addEventListener('load', function(event){
                var contenuReponse = xhr.responseText;
                document.getElementById('reponse').innerHTML = contenuReponse
            })
            xhr.open('GET', '/lab/html5/Texte.txt', true)
            xhr.send()
        }
    

Resultat: