V
Vladimir Eltchinov
Hi!
How to find out iframe's coordinates in parent?
Code like this one does not work if parent and iframe are loaded from
different domains.
var iframeList=parent.document.getElementsByTagName('iframe'); var
i;var size;
for( var i=0;i<iframeList.length;i++ )
if(iframeList.src==document.location) {
size=""+iframeList.offsetLeft+'x'+iframeList.offsetTop;
}
How to find out iframe's coordinates in parent?
Code like this one does not work if parent and iframe are loaded from
different domains.
var iframeList=parent.document.getElementsByTagName('iframe'); var
i;var size;
for( var i=0;i<iframeList.length;i++ )
if(iframeList.src==document.location) {
size=""+iframeList.offsetLeft+'x'+iframeList.offsetTop;
}