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..?
A:
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
2010-08-31 07:05:54
that is also OK.. but that DIV must remain in the iframe document...
Jamal Abdul Nasir
2010-08-31 07:21:48
??? "what i want here is to open this div in the parent document"
mplungjan
2010-08-31 07:27:07