WebView.GetLink
---------------

Returns a property of the link with the given index.

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

MBS( "WebView.GetLink"; WebViewerRef; LinkIndex; PropertyName ) 

**MBS**( **"WebView.GetLink";** /\* Returns a property of the link with the given index. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function.e.g. "web" \*/   
**$LinkIndex**; /\* The index of the link. From 0 to LinkCount-1.e.g. 5 \*/   
**$PropertyName**) /\* The name of the property you want to query: href, rev, name, rel, accessKey, target, coords, hrefLang, type, charset, title lang, innerHTML, innerTexte.g. "href" \*/ 

### 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" |
| LinkIndex | The index of the link. From 0 to LinkCount-1. | 5 |
| PropertyName | The name of the property you want to query: href, rev, name, rel, accessKey, target, coords, hrefLang, type, charset, title lang, innerHTML, innerText | "href" |

### Description

Returns a property of the link with the given index.  
### Examples

Queries 6th link:

 MBS ( "WebView.GetLink"; "web"; 5; "href" )  
### See also

- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetForm](WebViewGetForm.md)
- [WebView.GetIcon](WebViewGetIcon.md)
- [WebView.GetLinkCount](WebViewGetLinkCount.md)
- [WebView.GetSilent](WebViewGetSilent.md)
- [WebView.GetTitle](WebViewGetTitle.md)
- [WebView.GetURL](WebViewGetURL.md)
- [WebView.GetWidth](WebViewGetWidth.md)
- [WebView.GetZoom](WebViewGetZoom.md)

### Example Databases

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

This function checks for a license.

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

  
[WebView.GetInternetExplorerVersion](WebViewGetInternetExplorerVersion.md) - [WebView.GetLinkCount](WebViewGetLinkCount.md)

[HTML Version](WebViewGetLink.shtml)