关于嵌套iframe的访问问题
页面关系是这样的:
A.html
|
+--iframeA(B.html)
|
+---iframeB(input type= "text " name= "BtextField ")
iframeA 包含在A.html里面,
iframeA的包含的网页是B.html
B.html中有一个iframeB。。
iframeB中的网页有个文本框 BtextField
现在由于某种原因,我需要在A.html中调用或者设置这个BtextField
我想了很多办法都不能实现。。
高手帮忙。
------解决方案--------------------A.html
<html>
<head>
<script>
function TEST(){
alert(document.frames( "B ").document.frames( "C ").document.all.FF.value)
}
</script>
</head>
<body>
<iframe id= "B " src= "B.html "> </iframe>
<input type= "button " onclick= "TEST() ">
</body>
</html>
//------------------------------------------------------
B.html
<html>
<head>
</head>
<body>
<iframe id= "C " src = "C.html "> </iframe>
<input type= "text " id= "FF " value= "123asdf ">
</body>
</html>
//------------------------
c.html
<html>
<head>
</head>
<body>
<input type= "text " id= "FF " value= "123asdf ">
</body>
</html>