Remember
01-28-2009, 05:53 PM
<html>
<head>
<script type="text/javascript">
function myfunction(txt)
{
alert(txt);
}
</script>
</head>
<body>
<form>
<input type="button"
onclick="myfunction('You've chosen a Ladder match')"
value="Ladder">
<input type="button"
onclick="myfunction('You've chosen Custom match')"
value="Custom">
</form>
<p>
When you click on one of the buttons, a function will be called. The function will alert
the argument that is passed to it.
</p>
</body>
</html>
Buttons wont work, I followed a tutorial exactly.
To the freakin' T.
EDIT: AHA! NVM, I foudn out in the alert box I cannot have a "'", as in "you've", it ended it, but still had words after it, so it screwed it up, LOCK PL0X.
<head>
<script type="text/javascript">
function myfunction(txt)
{
alert(txt);
}
</script>
</head>
<body>
<form>
<input type="button"
onclick="myfunction('You've chosen a Ladder match')"
value="Ladder">
<input type="button"
onclick="myfunction('You've chosen Custom match')"
value="Custom">
</form>
<p>
When you click on one of the buttons, a function will be called. The function will alert
the argument that is passed to it.
</p>
</body>
</html>
Buttons wont work, I followed a tutorial exactly.
To the freakin' T.
EDIT: AHA! NVM, I foudn out in the alert box I cannot have a "'", as in "you've", it ended it, but still had words after it, so it screwed it up, LOCK PL0X.