87,910
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
<script type="text/javascript">
function getid(){
aa.id.value=bb.temp_id.value;
}
</script>
<BODY>
<form method="post" name="bb">
<input type="hidden" name="temp_id" id="temp_id" value="12">
</form>
<form method="post" name="aa" target=_blank>
<input type="text" name="id" id="id" onfocus="getid()">
</form>
</BODY>
</html>
<script language=javascript>
function getid(){
document.getElementByid('id').value=document.getElementById('temp_id').value;
}
</script>
function getid(){
//aa.id.value=bb.temp_id.value;
document.getElementById("id").value = document.getElementById("temp_id").value;
}