I want to make the site automatically click the submit button a few seconds after the transition to the page, that is, without user intervention, that the hidden form data would be transmitted automatically.

  • "I want to do" - do) What did you fail? What have you tried? - Moonvvell
  • one
    Use ajax instead of a form. - Qwertiy

1 answer 1

So fit?

setTimeout(() => { document.getElementById('form').submit(); }, 1000) 
 <form id="form"> <input type="hidden" name="name1" value="1"> <input type="hidden" name="name2" value="1"> </form>