|
Using form text values?
<head>
<script type="text/javascript">
function heh() {
var rawr = getElementById("name")
if ("name == tyler")
alert("Wow kid you're a little faggot!")
}
else("name == * ")
}
}
</script>
</head>
<body>
<form>
ENTER YOUR NAME!!!<input type="text" id="name" value="">
<input type="submit" value="CLICK ME!" onclick="heh()">
</form>
</body>
Sigh I was wondering if anyone would know how to take the value information from the text input and use it to create and alert, or just to call on the information whenever I need it? This is a script I put together to show what I thought would be how it's done, but it's not. Anyway can someone help me?
|