帮我朋友问个 复杂滴问题,懂html的进 其实就是老窗体通过下面发式<a href="#" onClick="openWin('dxjg.jsp',560, 450)">[请选择]</a>打开一个窗体后我在新窗体上面填写了 AAA(假设是文本框)怎么样使得我在老窗体上也得到AAA 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 a.html<script>var newwin; function openWin(url){ newwin = window.open(url);}function foryou(){ alert(newwin.document.getElementById("test").value);}</script><a href="#" onclick="openWin('b.html');">[请选择] </a><input type="button" value="取得文本的值" onclick="foryou();">b.html<input type="text" id="test" value=""> 我也来个a.html<html><head></head><body><script language="javascript" type="text/javascript">function Open(){window.open('b.html');}</script><form><input type="text" id="txtParent"><a href="#" onclick="Open()">Open Window</a></form></body></html> b.html<html><head></head><script language="javascript" type="text/javascript">function SetValueForParent(){parent.opener.document.all("txtParent").value=document.getElementById('test').value;window.close();}</script><body>Values:<br/><input type="text" id="test" value=""><input type="button" value="确定" onclick="SetValueForParent();"></body></html> var openImg = new ..Asset not found.. 请教高手jQuery怎么取得本地语言 比如:zh-CN jquery播放器 真棒 闭包问题 js控制导航菜单点击后的css效果 跨页面操作 大家常用哪些jquery的plug-in 火狐下如何获取 x y轴坐标 看了“几个文本框联动的问题?---解决就结贴---:)” 怎样正确全面的捕扣到用户按键内容? $('tRoll')这个等效于document.getElementById("tRoll")? 大侠门,刚学ajax 我想写个最简单的从服务器调用文本
var newwin;
function openWin(url){
newwin = window.open(url);
}function foryou(){
alert(newwin.document.getElementById("test").value);
}
</script><a href="#" onclick="openWin('b.html');">[请选择] </a><input type="button" value="取得文本的值" onclick="foryou();">
b.html<input type="text" id="test" value="">
<head>
</head>
<body>
<script language="javascript" type="text/javascript">
function Open()
{
window.open('b.html');
}
</script>
<form>
<input type="text" id="txtParent"><a href="#" onclick="Open()">Open Window</a>
</form>
</body>
</html> b.html
<html>
<head>
</head>
<script language="javascript" type="text/javascript">
function SetValueForParent()
{
parent.opener.document.all("txtParent").value=document.getElementById('test').value;
window.close();
}
</script>
<body>
Values:<br/>
<input type="text" id="test" value="">
<input type="button" value="确定" onclick="SetValueForParent();">
</body>
</html>