I need to enable a button outside of the iframe only when the user has scrolled to the end of the document within the iframe. Any idea of how to do that? Any sample code would be helpful

Thank you