Portfolio

AccesingForm


Username: Password:

<!DOCTYPE html>

<html>
<head></head>
<body>
<form name = "login">
Username: <input type = "text" name = "username" />
Password: <input type = "text" name = "password"/>
<input type = "Submit" value = "Submit!"/>
</form>
<script type = "text/javascript">
var x = document.forms[0].elements[0].name;
document.write(x+"<br />"+"<br />"+"<br />");

function validator(){
if(document.buckysForum.thebox.checked)
alert("Yes its checked");
else
alert("you must checked");
}
</script>

<form name = "buckysForum">
<input type = "checkbox" name = "thebox" />
<input type = "button" value = "Press me!" onClick = "validator()" />

</body>
</html>