Last active
September 24, 2016 09:46
-
-
Save ianthompson/95b9a541a6844fdf2f620a566c95bae4 to your computer and use it in GitHub Desktop.
HTML and JavaScript example in Beaver Builder
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
<h4>Enter a name and click "Submit"</h4> | |
<form id="loginInfo" > | |
<input id="userName" type="text" name="user" size="40" placeholder='Username' /><br> | |
<input id="loginButton" type="button" value="Submit" onclick="loginButtonClick()" /> | |
</form> | |
<script> | |
function loginButtonClick() { | |
var username = document.forms.loginInfo.userName.value; | |
alert(username); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment