<script language="javascript">
window.parent.text1.value=text1.value
</script>
window.parent.text1.value=text1.value
</script>
解决方案 »
- 使用jquery easyui 碰到的datagrid赋值疑难问题,三天没有解决,在线等
- jquery uploadify插件解决跨域上传图片问题时,出问题
- JS 怎么判断 select 下拉菜单是否存在?
- 手机滑屏实现图片切换怎么实现
- 刚刚 弄这个javascript 谁弄看看我的代码 有什么问题么,感觉这种语言也没有调试工具,看不出来什么错误哦
- 谢谢,帮我
- javascript该怎样传递参数?看我下边的代码为什么错了???
- js怎样调用ie的打印预览和打印功能?
- 关于链接的样式问题请帮帮小弟!!!!!!
- 请教下在${}后面加参数的问题
- 如何得到一个页面元素的位置信息。包含(top,left,width,height)
- 关于IE窗口焦点的问题(消息提醒功能)
<html>
<head>
<title>无标题文档</title>
</head>
<script>
function set(obj)
{
document.all.cv.value=obj;
}
function copy0to1(obj)
{
parent.text1.vaule=obj;
}
</script>
<body>
<p>
<input name="text1" type="text" id="text1" onkeyup="set(this.value)">
text1</p>
<p>
<input name="text2" type="text" id="text2" onkeyup="set(this.value)">
text2</p>
<p>
<input type=hidden name=cv >
<input type=button value="复制" onclick="copy0to1(document.all.cv.value)">
text2</p>
</body>
</html>
1.asp
<html>
<head>
<title>无标题文档</title>
</head><body>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100">
<iframe src="0.asp" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no">
</iframe>
</td>
</tr>
<tr>
<td height="166"><form name="form1" method="post" action="">
<p>
<input name="text1" type="text" id="text1">
<input type="radio" name="radiobutton" value="radiobutton">
text1
<input type="radio" name="radiobutton" value="radiobutton">
text2 </p>
<p>
<input name="text2" type="text" id="text2">
<input type="radio" name="radiobutton" value="radiobutton">
text1
<input type="radio" name="radiobutton" value="radiobutton">
text2 </p>
</form></td>
</tr>
</table>
</body>
</html>