`

iframe内如何得到iframe以外的元素

阅读更多

 

 

a.jsp

 

<iframe id="upFileFrame" name="upFileFrame" frameborder="0" scrolling="auto" src="b.jsp" style="width:100%;height:200px;border:0px;"></iframe> //如何在b.jsp中得到a.jsp中的div元素? ------回答--------- ------其他回答(18分)--------- parent.document.getElementById("tip") ------其他回答(2分)--------- 用外层元素找到呗 ------回答--------- ------其他回答(18分)--------- parent.document.getElementById("tip")

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics