xhr.open(form.getAttribute('method'), form.getAttribute('action'));
xhr.onload = () => result.innerHTML = this.responseText;
xhr.onerror = () => result.innerHTML = 'Error!';
xhr.open(form.getAttribute('method'), form.getAttribute('action'));
xhr.onload = () => result.innerHTML = this.responseText;
xhr.onerror = () => result.innerHTML = 'Error!';