DownloadStarting Event  
 

The DownloadStarting event occurs before a new navigation begins, allowing the application to cancel the navigation if needed.

Syntax

Sub object_DownloadStarting ( [Index As Integer,] ByVal Location As String, Cancel As Boolean )

Remarks

The DownloadStarting event is fired when a new navigation request begins. The event is raised before any network request is made, ensuring that no data is sent until the handler has had a chance to approve or deny the navigation. The Location argument specifies the URL for the new location and setting the Cancel argument to True will cancel the navigation before it can begin.

See Also

Navigate Method, NavigationCompleted Event