WebView.GetPrivateBrowsing
--------------------------

Queries whether private browsing is enabled.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [9.5](newinversion95.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md). Use [WebView.GetUsePrivateBrowsing](WebViewGetUsePrivateBrowsing.md) instead.

MBS( "WebView.GetPrivateBrowsing"; WebViewerRef ) 

**MBS**( **"WebView.GetPrivateBrowsing";** /\* Queries whether private browsing is enabled. \*/  
**$WebViewerRef**) /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function.e.g. "web" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. | "web" |

### Result

Returns 1, 0 or error.

### Description

Queries whether private browsing is enabled.  
Returns 1 if enabled or 0 if not.  
### See also

- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetUsePrivateBrowsing](WebViewGetUsePrivateBrowsing.md)
- [WebView.SetPrivateBrowsing](WebViewSetPrivateBrowsing.md)
- [WebView.SetUsePrivateBrowsing](WebViewSetUsePrivateBrowsing.md)

### Release notes

- **Version 9.5**
    - Added [Webview.GetPrivateBrowsing](http://www.mbsplugins.eu/WebviewGetPrivateBrowsing.shtml) and [Webview.SetPrivateBrowsing](http://www.mbsplugins.eu/WebviewSetPrivateBrowsing.shtml) functions.

### Blog Entries

- [New functions of the MBS Plugin Version 9.5](https://www.mbsplugins.de/archive/2019-11-21/New_functions_of_the_MBS_Plugi/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.5pr5](https://www.mbsplugins.de/archive/2019-10-29/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 27th October 2019 , last changed 11st June 2021

  
[WebView.GetPrintParameter](WebViewGetPrintParameter.md) - [WebView.GetSilent](WebViewGetSilent.md)

[HTML Version](WebviewGetPrivateBrowsing.shtml)