what is wrong with my HTML?

Anon Ymouse

New member
<html>
<head>
<script type="text/javascript">

touched()
{
alert("I Told you not to touch me!!!!!");
alert("you should have listened!");
alert("do it again and i will keeelll you!");
}

</script>
</head>

<body bgcolor="red">
<input type="button" name="click me" onclick="touched()" value="click me" />
</body>
</html>

the button wont work
ok, i fixed it, thank you guys! but now i have a new error, stack overflow at line :14 and i dont know whats wrong, the prompt just doesnt work, please help ,i am pretty beginner :)
ok, i fixed it, thank you guys! but now i have a new error, stack overflow at line :14 and i dont know whats wrong, the prompt just doesnt work, please help ,i am pretty beginner :)

<html>
<head>
<script type="text/javascript">

function touched()
{
alert("I Told you not to touch me!!!!!");
alert("you should have listened!");
alert("do it again and i will keeelll you!");
}

function prompt()
{
var x = prompt("Hey there, buddy! What's your name?", "");
alert("well then hello there " + x + "!");
alert("the goal of the game " + x + ", is to click the center button, and do it without clicking the outer shell buttons");
alert("yea? sounds easy? well LISTEN HERE " + x + "!, you couldnt be more wrong!");
}

function win()
{
alert("hawly crap you did it " + x + ".");
alert("well i owe you an appology there " + x + "...too bad:P");
alert("but i suppose should reward you...");
alert("here have a cookie :P");
alert("eww, you eat like a pig");
alert("*sniffle* just like mah mamma did! *sniffl
 
Back
Top