开发者

iframe's document issue

开发者 https://www.devze.com 2023-01-14 10:42 出处:网络
i have a div in an iframe document. when i click a link in an iframe\'s d开发者_如何学Goocument, that div opens or pops-up on the screen with z-index value. Now what i want here is to open this div in

i have a div in an iframe document. when i click a link in an iframe's d开发者_如何学Goocument, that div opens or pops-up on the screen with z-index value. Now what i want here is to open this div in the parent document not the in iframe's document. so, how can achieve this..?


Put or create the div in the parent, e.g. window.getElementById('someDivInTheParent').style.display='block' or

var div = document.createElement('div')

.
.
.
window.document.body.appendChild(div);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号