i have a div in an iframe document. when i click a link in an iframe's document, 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..?
Asked
Active
Viewed 141 times
0
-
1related : http://stackoverflow.com/questions/1037839/how-to-force-link-from-iframe-to-be-opened-in-the-parent-window – Haim Evgi Aug 31 '10 at 06:04
-
@HaimEvgi really helpful.. thnx – Jamal Abdul Nasir Aug 01 '12 at 20:32
1 Answers
0
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);

mplungjan
- 169,008
- 28
- 173
- 236