# Inline frame scrolled to end event

**URL:** <https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 22, 2023, 9:52am UTC](https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242 "2023-11-22T09:52:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 22, 2023, 9:52am UTC](https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242/1 "2023-11-22T09:52:28Z")

</div>

Hi all,  
In a Perspective View I'm using an _Inline Frame_ to show some instructions documents to the operator. It would be nice for me to capture the event when the operator has scrolled the document down to the end, so that I store in a table that that piece of information has been completely read.  
I cannot seem to find an event in the _Inline Frame_ object for that sake. Any suggestion?

Thanks in advance, regards

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 22, 2023, 1:42pm UTC](https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242/2 "2023-11-22T13:42:57Z")

</div>

**Not possible** to access anything inside the IFrame, this is limited by the browsers itself. Except if the page you access specifically has such an event coded to be accessable by parents. (never the case unless you have acces to the webpage of the document itself)

Dont waste your time on it, **but...**

If the company hosts the page with the document, they might be able to code a post message, and then you could listen to it by injecting js code in a markdown.

Knowledge of js is required,  
A lot of work for questionable results, cuz who rly reads it anyways... if you have to check, then it means its not good and you gotta assume its not read.

> **[Send data between parent window and child iframe - PostMessage API](https://javascriptbit.com/transfer-data-between-parent-window-and-iframe-postmessage-api/)**
>
> How to transfer data between main window, iframe, windows and even between different domains. PostMessage API Usage examples.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 22, 2023, 2:22pm UTC](https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242/3 "2023-11-22T14:22:49Z")

</div>

Thanks @victordcq , you are right. Just in case the operator says: "Oh, I did not know", you can reply: "You've read it that day, that hour, you cannot say that!"

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 22, 2023, 2:57pm UTC](https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242/4 "2023-11-22T14:57:47Z")

</div>

Just put a "ive read the terms and services" button under the iframe.  
Then its their fault for not reading what they accept

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 22, 2023, 4:11pm UTC](https://forum.inductiveautomation.com/t/inline-frame-scrolled-to-end-event/82242/5 "2023-11-22T16:11:30Z")

</div>

That's ok! 👍
