I have an iframe that adjusts it's size dynamical. I solved this with a post message and a listener on the parent page, so everytime the content of the iframe changes the iframe size will too and there will never be a scroll bar.
In the iframe I am showing a list and everytime the bottom of the iframe is reached, I want to append new items to the list.
For me it would also work to trigger the function when the bottom of the parent page is reached, so i tried:
But it is forbidden due to cross domain origin.
Is there a way to accomplish what I am trying to do?