I'm trying to get access to the user inputted data in an external javaScript so I can use it to run the main script. My form is
<form action="scripts/Main.js" method="post">
<label>
Enter Pin:
</label>
<input type="text" id="pin" name="pin" /> <br>
<label>
Enter Username:
</label>
<input type="text" id="name" name="user_name" />
<button type="submit">
Submit Info
</button>
</form>
I have no idea where to start in order to get and use the pin and name in the JavaScript.