Is there a way to trigger an event after a new page in a tab is fully loaded.

Add-in Express™ Support Service
That's what is more important than anything else

Is there a way to trigger an event after a new page in a tab is fully loaded.
 
David R.




Posts: 55
Joined: 2010-07-22
Hi,

I want to raise an event after new page in new tab is fully loaded (by link). Because I need to use the url on the new page(tab).

I tried to use 'OnTabActivated' and 'OnTabCreated' but it seems not possible to access HTMLDocument property at that moment.

I also tried 'OnVisible' with this method I can access HTMLDocument, but the moment the url is ""about:blank"

Is there a way to raise an event after a new page on new tab is fully loaded?

Thanks.
Posted 15 Jun, 2017 14:46:13 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello David,

Handle the DocumentComplete2 event. The event contains the 'rootDocLoaded' parameter which is set to true if the root document is completely loaded.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Jun, 2017 04:43:37 Top
David R.




Posts: 55
Joined: 2010-07-22
Thanks, it's exactly what I was looking for ;)
Posted 16 Jun, 2017 10:01:15 Top