Answer the question
In order to leave comments, you need to log in
Is it possible to interrupt submit outside of the form?
There is a script:
function Validation() {
if (document.getElementById('').checked && document.getElementById('').click) {
event.preventDefault();
grecaptcha.execute();
if(grecaptcha.getResponse().length != 0){
document.getElementById('').submit();
}else{
return false;
}
}
}
document.QuerySelector('#').submit;
Answer the question
In order to leave comments, you need to log in
To intercept, see the third parameter in addEventListener()
https://learn.javascript.ru/event-bubbling
Or you can override the submit() method of the form.
But in general, I think you are doing something strange.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question