if (window.parent) {
scrollTop = jQuery(window.parent).scrollTop();
}
following code from iframe window throws permission denied.
this direct code (not jquery) too.
parent.document.body.scrollTop
Is it possible to go around this problems? 🙂
No.
For security reasons, it is not possible to access a frame from a different domain.
Even though what you’re doing is completely benign, you still can’t do it.
However, try changing
document.domainto be the same (or parent) domain of the parent window (if you know what it is); that might help.