Professional Documents
Culture Documents
Functio
Functio
<head>
<script type="text/javascript"><!-function ex2(text) {
alert(text);
}
--></script>
</head>
<body>
<form>
<input type="button" onclick="ex2('Good morning!')" value="Morning" />
<input type="button" onclick="ex2('Good afternoon!')" value="Afternoon" />
</form>
</body>
</html>