app. I want that when submit button on form is clicked, it should not submit so I can run some code. Anyone familiar with electron js please help me out
const form = document.querySelector('form')
form.addEventListener('submit', event=> {
event.preventDefault();
const { path } = document.querySelector('input').files[0];
ipcRenderer.send('video:submit', path);
});
is form the form you want?
Обсуждают сегодня