document.querySelectorAll('button').forEach(button => button.addEventListener('submit', () => {/* действия при отправке */}))