Previous topicNext topic
Help > Events >
NewWindowRequested

NewWindowRequested Event

NewWindowRequested is raised when content inside the OrdoWebView requests to open a new window.

Syntax

Private Sub object_NewWindowRequested(IsUserInitiated As Long, IsHandled As Long, URI As String, NewWindowFeaturesJSON As String)

The NewWindowRequested event syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
IsUserInitiated Long. TRUE when the new window request was initiated through a user gesture such as selecting an anchor tag with target
IsHandled Long. Indicates whether the NewWindowRequested event is handled by host
URI String. Gets the target uri of the new window request
NewWindowFeaturesJSON Json String. Gets the window features specified by the window.open() call. These features should be considered for positioning and sizing of new WebView windows.