[CODE]<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language=javascript>
function show()
{
alert("Hello World!");
document.form1.txt1.value = "My name is bingxue2332.";
}
</script>
</head>
<body>
<form name="form1">
<p><input type="text" name="txt1" size="20"></p>
<p><input type="button" value=" 按 钮 " name="B1" onClick="show()"></p>
</form>
</body>
</html>[/CODE]
[此贴子已经被作者于2005-3-30 8:57:36编辑过]