B2的值传递,需要进行JS实现,再B2返回的时候再刷新一次父页面,并传值....
window.frames["framename"].document.getElementsByTagName("TABLE")[0].getAttribute("id")
<!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>
<title></title>
</head>
<body>
<iframe src="b.aspx" id="B" name="B"></iframe>
</body>
</html>
<script type="text/javascript">
window.onload = function() {
var b = window.frames["B"].document.getElementById("password");
if (b) {
//操作b
alert(b.value);
}
}
</script>
如上代码,在b.aspx中有一个input,id是password