WebView.ClearSelection
----------------------

Clears selection.

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

MBS( "WebView.ClearSelection"; WebViewerRef ) 

**MBS**( **"WebView.ClearSelection";** /\* Clears selection. \*/  
**$WebViewerRef**) /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Clears selection.  
Not supported for FileMaker 16 on Mac, but works in FileMaker 9 to 15.  
### See also

- [WebView.FindByName](WebViewFindByName.md)

### Release notes

- **Version 12.5**
    - Implemented [WebView.ClearSelection](https://www.mbsplugins.eu/WebViewClearSelection.shtml) for WebKit 2 on macOS.
- **Version 12.2**
    - Fixed [WebView.ClearSelection](https://www.mbsplugins.eu/WebViewClearSelection.shtml) to work with Edge based WebViewer on Windows.
- **Version 7.4**
    - Added [WebView.ClearSelection](http://www.mbsplugins.eu/WebViewClearSelection.shtml), [WebView.Copy](http://www.mbsplugins.eu/WebViewCopy.shtml), [WebView.Cut](http://www.mbsplugins.eu/WebViewCut.shtml), [WebView.Paste](http://www.mbsplugins.eu/WebViewPaste.shtml) and [WebView.SelectAll](http://www.mbsplugins.eu/WebViewSelectAll.shtml).

### Example Databases

- [WebViewer/WebViewer Copy Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20Copy%20Text.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 12.5pr1](https://www.mbsplugins.de/archive/2022-09-29/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.2pr2](https://www.mbsplugins.de/archive/2022-04-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.4pr2](https://www.mbsplugins.de/archive/2017-08-14/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st August 2017 , last changed 25th August 2017

  
[WebView.ClearPrintParameters](WebViewClearPrintParameters.md) - [WebView.ClearVirtualHostNameToFolderMapping](WebViewClearVirtualHostNameToFolderMapping.md)

[HTML Version](WebViewClearSelection.shtml)