Created
September 29, 2019 16:27
-
-
Save onliniak/f985b530933da3b0b187d3ce7bf4290d to your computer and use it in GitHub Desktop.
Javascript params from input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="email" name="user"> | |
<input type="password" name="key"> | |
<input name="submit" type="submit" onclick="login()"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function login() { | |
email = document.getElementsByName("user")[0].value | |
key = document.getElementsByName("key")[0].value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment