这是我的JS代码 为什么点击以后 没有在tex中 没有显示呢 请各位 大侠 帮忙 看下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript"">
function conwin()
{
if(confirm("单击[OK]按钮或者[CANCEL]按钮...."))
{
document.conform.box1.value="[OK]按钮被单击"
}
else
{
document.conform.box1.value="[CANCEL]按钮被单击"
}
}
</script>
</head>
<body>
<input type="button" value="单击" onclick="conwin()" />
<input type="text" name="text1" size="20" />
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript"">
function conwin()
{
if(confirm("单击[OK]按钮或者[CANCEL]按钮...."))
{
document.conform.box1.value="[OK]按钮被单击"
}
else
{
document.conform.box1.value="[CANCEL]按钮被单击"
}
}
</script>
</head>
<body>
<input type="button" value="单击" onclick="conwin()" />
<input type="text" name="text1" size="20" />
</body>
</html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title> <script type="text/javascript">
function conwin()
{
if(confirm("单击[OK]按钮或者[CANCEL]按钮...."))
{
document.getElementById("box1").value="[OK]按钮被单击"
}
else
{
document.getElementById("box1").value="[CANCEL]按钮被单击"
}
} </script>
</head>
<body>
<input type="button" value="单击" onclick="conwin()" />
<input id="box1" type="text" name="text1" size="20" />
</body>
</html>