er("error", (event) => {
                document.getElementById("form2-message").innerHTML = "Oops! Something went wrong.";
            });

            XHR.open("POST", "/post/form2");

            XHR.setRequestHeader("Content-type", "application/json");
            XHR.send(document.getElementById("f2string").value);

            return false;
        }
    </script>
</body>
</html>