htm中按钮触发事件怎么编写?

来源:百度知道 编辑:UC知道 时间:2024/05/22 17:20:16
要求从网页上的text中取值并弹出该值的对话框

<html>
<head>
<title>ss</title>
<script language="javascript">
function Alert()
{
Text_Value=document.tt.text.value;
alert(Text_Value);
}
</script>
</head>
<body>
<form name="tt" method="get">
<input type="text" name="text">
<input type="submit" name="submit" onclick="Alert()">
</form>
</body>
</html>

认为涉及JAVASCRIPT