How to submit data form without clicking a submit button
Iâm trying to write a code to automatically log me into a particular website. I have successfully gotten it to enter the username/password credentials, but do not know how to get the form to then submit without me having to click the âsubmitâ button. Is there someway to code the form to automatically submit my info (maybe by a JS function or by overwriting their html)? WEBSITEâS HTML: <form action="/home/signin?ReturnUrl=%2fappointments" method="post"> <fieldset> <div class="login-inner"> <input id="ReturnUrl" name="ReturnUrl" type="hidden" value="/appointments" /> <div class="input-container"> <span class="input-label"> <label for="Email">Email</label> </span> <input class="input" id="Email" name="Email" placeholder="Email or User Name" size="16" type="text" value="" /> </div> <div class="input-container"> <span class="input-label"> <label for="Password">Password</label> </span> <input class="input" id="Password" name="Password" placeholder="Password" size="16" type="password" /> </div> <div> <input type="submit" class="login" value="Log In" /> </div> My CODE SO FAR: var myUser = document.getElementById("Email"); myUser.value = "Username"; var myPass= document.getElementById("Password"); myPass.value = "Password"; https://code.sololearn.com/WGRX9sZ5icTK/?ref=app