WebView.GetIcon
---------------

Queries the favorite icon of current webpage.

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

### Deprecated

This function was [deprecated](deprecated.md). Use [WebView.Favicon](WebViewFavicon.md) instead.

MBS( "WebView.GetIcon"; WebViewerRef { ; ImageType; FileName } ) 

**MBS**( **"WebView.GetIcon";** /\* Queries the favorite icon of current webpage. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/   
**$ImageType**; /\* Optional; The type of image to return.   
Either JPEG, PNG, GIF or BMP. Default is JPEG.e.g. "JPEG" \*/   
**$FileName**) /\* Optional; The filename to use for the picture.   
Default is "image" with the extension matching the image type.e.g. "test.jpg" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |  |
| ImageType | The type of image to return.    Either JPEG, PNG, GIF or BMP. Default is JPEG. | "JPEG" | Optional |
| FileName | The filename to use for the picture.    Default is "image" with the extension matching the image type. | "test.jpg" | Optional |

### Result

Returns container value or error.

### Description

Queries the favorite icon of current webpage.  
  
Not supported for WebKit 2.x (FileMaker 16 Mac), but works in FileMaker 16, when using a Web Viewer created using [WebView.Create](WebViewCreate.md).  
### See also

- [WebView.Create](WebViewCreate.md)
- [WebView.Favicon](WebViewFavicon.md)
- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetForm](WebViewGetForm.md)
- [WebView.GetImage](WebViewGetImage.md)
- [WebView.GetLink](WebViewGetLink.md)
- [WebView.GetURL](WebViewGetURL.md)
- [WebView.GetZoom](WebViewGetZoom.md)
- [WebView.SetZoom](WebViewSetZoom.md)
- [WebView.Version](WebViewVersion.md)

### Blog Entries

- [MBS FileMaker Plugin 5.0 for OS X/Windows - More than 3000 Functions In One Plugin](https://www.mbsplugins.de/archive/2015-02-24/MBS_FileMaker_Plugin_50_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.0pr8](https://www.mbsplugins.de/archive/2015-01-20/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th January 2015 , last changed 21st July 2025

  
[WebView.GetHidden](WebViewGetHidden.md) - [WebView.GetImage](WebViewGetImage.md)

[HTML Version](WebViewGetIcon.shtml)