HTML 9_Fungsi dengan argumen (lagi)

<html>
<head>
<script type="text/javascript">
function myfunction(txt)
{
alert(txt)
}
</script>
</head>
<body>
<form>
<input type="button"
onclick="myfunction('Good Morning!')"
value="In the Morning">
<input type="button"
onclick="myfunction('Good Evening!')"
value="In the Evening">
</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>
Category: 0 komentar

0 komentar:

Posting Komentar