>I think I have found the solution, but I never worked with the internetExplorer object. >
> >This the what MSDN is saying about the event BEFORENAVIGATE2: > >Occurs when the WebBrowser control is about to navigate to a different URL, which may happen as a result of external automation, internal automation from a script, or the user clicking a link or typing in the address bar. The container has an opportunity to cancel the pending navigation. > >Is there someone who used this before. > >SYNTAX: >Private Sub object_BeforeNavigate2(ByVal pDisp As Object, ByVal URL As String, >ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, >ByVal Headers As String, Cancel As Boolean)
But how are you going to trap that? Do your users use a custom web browser control in your app?
Wayne Myers, MCSD Senior Consultant Forte' Incorporated "The only things you can take to heaven are those which you give away" Author Unknown