跪求DropDownList选择弹出子窗口页面并取值返回父页面 类型:控件DropDownList 选择DropDownList某一项,传值查询Grid窗口页面显示 选择Grid窗口页面LinkButton按钮获取选中行“名称”并返回给文本框关闭窗口名称:文本框在线等 能上代码的尽量上代码 谢了!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 选择DropDownList 项时用window.open 打开新窗口,选择Grid值用window.opener.document.getElementByID("文本框客户端ID").value = 值;用window.close();关闭打开的窗口 参考<!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=utf-8" /><title>无标题文档</title><script language="javascript" type="text/javascript"> function RedirectUrl(){ var val = document.getElementById("sel").value; if(val != ""){ window.open(val,"Refer"); } }</script></head><body><form id="form1" name="form1" method="post" action=""> <select name="sel" id="sel" onchange="RedirectUrl()"> <option value="">请选择</option> <option value="2.html">2.html</option> </select> <span id="rtnValue"></span></form></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=utf-8" /><title>无标题文档</title><script language="javascript" type="text/javascript">function ReturnValue(){ var val = document.getElementById("sex").value; //alert(window.opener.document.getElementById("rtnValue").innerHTML); window.opener.document.getElementById("rtnValue").innerHTML = val; window.close();}</script></head><body><form id="form1" name="form1" method="post" action=""> <input type="radio" name="radio" id="sex" value="男" />男 <input type="radio" name="radio" id="sex" value="女" />女 <input type="submit" name="btnOK" id="btnOK" value="OK" onclick="ReturnValue()" /></form></body></html> 子窗口window中获取值传回给父窗口window.opener这个对象,像1楼那样操作就行了 麻烦你用DropDownList试试var val = document.getElementById("DropDownList的ID").value;这样能获得? 打开窗体怎么传参的 子页面那边怎么接收麻烦帮下 谢了 我是给他一个<a hre="wenjianming"?id=<%"id"%>传参 后面接受参数 ASP.NET 2.0 AJAX配置目题 div + javascript 简单制作鼠标移上去出现下级菜单,出现一个小问题 asp.net中导出到Word的问题!!!!!!!!!!! 求一条较简单的sql语句 还是关于数据类型的问题 帮忙看一下:因为它受保护级别限制 用asp.net在excel表里搜入信息后,发现在输入的数据里有空格的时候,在excel里面都变成一个方框了 两张图片如何用箭头连接起来,并弹出对话框提示 asp.net附加进程的问题! 火急!为什么我的TreeView控件显不出树型结构,而只显示出一些文本? 急!access与repeater分页的问题! .net登录
用window.close();关闭打开的窗口
<!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=utf-8" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function RedirectUrl(){
var val = document.getElementById("sel").value;
if(val != ""){
window.open(val,"Refer");
}
}
</script>
</head><body>
<form id="form1" name="form1" method="post" action="">
<select name="sel" id="sel" onchange="RedirectUrl()">
<option value="">请选择</option>
<option value="2.html">2.html</option>
</select>
<span id="rtnValue"></span>
</form>
</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=utf-8" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function ReturnValue(){
var val = document.getElementById("sex").value;
//alert(window.opener.document.getElementById("rtnValue").innerHTML);
window.opener.document.getElementById("rtnValue").innerHTML = val;
window.close();
}
</script>
</head><body>
<form id="form1" name="form1" method="post" action="">
<input type="radio" name="radio" id="sex" value="男" />男
<input type="radio" name="radio" id="sex" value="女" />女 <input type="submit" name="btnOK" id="btnOK" value="OK" onclick="ReturnValue()" /></form>
</body>
</html>
传回给父窗口window.opener这个对象,像1楼那样操作就行了
var val = document.getElementById("DropDownList的ID").value;
这样能获得? 打开窗体怎么传参的 子页面那边怎么接收
麻烦帮下 谢了