Table of Contents

Property AllowScriptsToCloseWindows

Namespace
DotNetBrowser.Browser
Assembly
DotNetBrowser.dll

AllowScriptsToCloseWindows

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

bool AllowScriptsToCloseWindows { get; set; }

Property Value

bool

true if closing the browser from JavaScript is allowed, false otherwise.

Exceptions

ObjectDisposedException

The IBrowserSettings has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.