pePopupMode - cWebView2Browser
Determines if/how popups requested by the page are being displayed
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer pePopupMode
| Access Type | Syntax |
|---|---|
| Read Access: | Get pePopupMode to IntegerVariable |
| Write Access: | Set pePopupMode to IntegerVariable/Value |
Description
Determines if/how popups requested by the page are being displayed.
Valid values:
| Constant | Meaning |
|---|---|
| pmDefault | In the default mode the OnNewWindowRequested event is fired so the developer can apply custom logic. Without custom handling WebView2 will create a window. |
| pmNoPopups | Popups will be blocked. |
| pmPopupMdiView | Popups will be shown as MDI view. The OnCreatePopupBrowser event is fired to allow custom configuration of the browser control. |
| pmPopupFloatingPanel | Popups will be shown in a floating panel. The OnCreatePopupBrowser event is fired to allow custom configuration of the browser control. |
See Also