Thanks for the response and yes if I removed those two lines that set a ctl value when an event is also triggered, it will execute the child objects beforeNavigate2() event. But there is a caveat to this which is why those are needed unless there is a better way?
After the code I produced, it also has the following code waiting for an event to be triggered from the web page itself by the end user:
1000 ! loop unti user completes web navigation or closes window
1005 while 1
1010 obtain 'ME',*,'MN'; _ctl=ctl,_eom$=eom ! get input
1020 if cse(_ctl,100,101) then escape
1085 if cse(_ctl,104,4,-1999) then cancel=1; break
As you can see I am querying for those ctl values either 100 or 101 based on the event that occurs by user interaction within the web page itself. Either by closing the window or by selecting one of the three buttons themselves. I cannot figure out how to show this directly within the post, but i have attached a screenshot.
So how within the code above can I have it wait in the main program for one of those events to be triggered as well as execute the BeforeNavigate2() event inside the child object? I need both to occur using the *browser object.
Thanks again for your help.