Click or drag to resize

IBrowserSettingsAllowScriptsToCloseWindows Property

Allows or disallows JavaScript code on the web pages loaded in the browser to close the browser.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.2
Syntax
C#
bool AllowScriptsToCloseWindows { get; set; }

Property Value

Type: Boolean
true if closing the browser from JavaScript is allowed, false otherwise.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowserSettings has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
See Also