WebView.SelectAll
-----------------

Selects all text in web viewer.

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

MBS( "WebView.SelectAll"; WebViewerRef ) 

**MBS**( **"WebView.SelectAll";** /\* Selects all text in web viewer. \*/  
**$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

Selects all text in web viewer.  
This is like choosing the menu command to select all, but without using the menu.  
  
As WebViewer functions often run asynchronously, you need to make a short script pause to let the WebViewer do the job.  
### Examples

Select all and copy:

 MBS ( "Webview.SelectAll"; "web" ) &amp; MBS ( "[WebView.Copy](WebViewCopy.md)"; "web" )  
### See also

- [WebView.Copy](WebViewCopy.md)
- [WebView.FindByName](WebViewFindByName.md)

### Release notes

- **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/WebView Copy and Paste](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebView%20Copy%20and%20Paste.shtml#1Button11.000000032.000000045.0000000138.0000000LayoutObjectAnchor_)
- [WebViewer/WebViewer Copy Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20Copy%20Text.shtml#1ScriptAnchor_)

### Blog Entries

- [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 4th November 2021

  
[WebView.SearchText](WebViewSearchText.md) - [WebView.SelectedText](WebViewSelectedText.md)

[HTML Version](WebViewSelectAll.shtml)