you should give a try to onLoad / onShow, something like:

cCustomWebView.pkg

Code:
Class cCustomWebView is a cWebView

    Procedure Construct_Object
        Forward Send Construct_Object

        Set pbServerOnShow to True
    end_procedure

    procedure onShow
        Forward Send Onshow
        
        Send pYourCustomProcedure  

    end_procedure

End_Class
YourView.wo

Code:
use cCustomWebView.pkg 

Object oMyView is a cCustomWebView
...
End_Object
it's an idea, just to give you a start point.

,Regards