View Single Post
Old Apr 3rd, 2007, 2:24 AM   #1
Phonetic
Newbie
 
Join Date: Nov 2006
Posts: 5
Rep Power: 0 Phonetic is on a distinguished road
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?
Phonetic is offline   Reply With Quote