PhotosAPI/pages/register/script.js
2023-01-12 16:21:33 +01:00

7 lines
210 B
JavaScript

// JavaScript is used for toggling loading state
var form = document.querySelector('form');
form.onsubmit = function (event) {
event.preventDefault();
form.classList.add('signed');
form.submit();
};