WebView.GetLinkCount
--------------------

Returns the number of links on the current webpage.

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

MBS( "WebView.GetLinkCount"; WebViewerRef ) 

**MBS**( **"WebView.GetLinkCount";** /\* Returns the number of links on the current webpage. \*/  
**$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. |  |

### Description

Returns the number of links on the current webpage.  
### Examples

Queries number of links:

 MBS ( "WebView.GetLinkCount"; "web" )  
### See also

- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetFormCount](WebViewGetFormCount.md)
- [WebView.GetImageCount](WebViewGetImageCount.md)
- [WebView.GetLink](WebViewGetLink.md)

### Example Databases

- [WebViewer/WebViewer Links](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20Links.shtml#1Button6.0000000284.000000031.0000000409.0000000LayoutObjectAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[WebView.GetLink](WebViewGetLink.md) - [WebView.GetMediaVolume](WebViewGetMediaVolume.md)

[HTML Version](WebViewGetLinkCount.shtml)