Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it’s suited for websites, Node.js projects, or anywhere that JavaScript can run.
The HTML form element has an onSubmit event handler. Every time the submit button is clicked or the Enter key is pressed, the handler function is invoked. By default, the browser will refresh the page when a form submission event is triggered.