input 当使用onclick时,输入的中文变成空字符了..怎么解决?

来源:百度知道 编辑:UC知道 时间:2024/06/17 05:13:25
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
session.CodePage = 65001
Response.Buffer=true
Response.Expires=0
%>
<!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>
<style type="text/css">
.inp
{
border:none;
background-color:#F6EDED;
height:25px;
font-size:18px;
}
#queding input.dl:hover{background:url(images/dl.gif) no-repeat;color:#fff; height:30px;width:150px;}
#queding input.zc:hover{background:url(images/zc.gif) no-repeat;color:#FFFFFF; height:40px;width:150px;}
</style>

就拿你的组名来说吧:
组名的input改成如下:(添加一个id和一个onclick方法)
<input type="text" maxlength="15" name="team" id="team" class="inp" size="16" onclick="clear();">
然后在head里面添加script
<script type="text/javascript">
function clear(){
document.getElementById("team").value="";
}
</script>

是你提交到新的login.asp页面,重新初始这个新页面后,其值为空。

问题不明白,请说的详细点