<!DOCTYPE html>
<html >
<head >
<title></title>
<script type="text/javascript">
function myfunction(txt)
{
alert(txt);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="button" onclick="myfunction('Good Morning')" value="In the
Morning" />
<input type="button" onclick="myfunction('Good Evening')" value="In the
Evening" />
</div>
</form>
</body>
</html>
No comments:
Post a Comment