<html>
<head>
<title>frame and button</title>
<script language="Javascript">
function sho(form)
{
document.writeln("click click boom!");
alert("clicked!);
form.tex1.value="abc";
}
</script>
</head>
<body>
<form name="cosine">
<input name="tex1" type="text" value=" "><br><br>
<input name="button1" type="button" value="click" onClick="sho(this.form)">
<input name="reset1" type="reset" value="clear">
</form>
</body>
</html>