WebView.SetInternetExplorerVersion
----------------------------------

Sets the Internet Explorer version to use for web viewer.

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

MBS( "WebView.SetInternetExplorerVersion"; Version ) 

**MBS**( **"WebView.SetInternetExplorerVersion";** /\* Sets the Internet Explorer version to use for web viewer. \*/  
**$Version**) /\* The version to use.  
Set to zero to go back to default.e.g. 11000 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Version | The version to use.   Set to zero to go back to default. | 11000 |

### Result

Returns OK or error.

### Description

Sets the Internet Explorer version to use for web viewer.  
By default FileMaker uses IE7 for the web viewer, even if you have version 11 enabled.  
  
| Value | Description |
|---|---|
| 11001 | Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
| 11000 | IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11. |
| 10001 | Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive. |
| 10000 | Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10. |
| 9999 | Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
| 9000 | Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9. In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. |
| 8888 | Webpages are displayed in IE8 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
| 8000 | Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8. In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. |
| 7000 | Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting the WebBrowser Control. |

  
In a test on Windows 10, we get by default this browser version:  
  
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Win64; x64; Trident/7.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)  
  
and with setting it to 11000, we get this:  
  
Mozilla/5.0 (Windows NT 6.2; Win64; x64; Trident/7.0; rv:11.0) like Gecko  
  
You may also use [WebView.PostURL](WebViewPostURL.md) to load a website and pass a different User Agent string.  
  
FileMaker 16 defaults to Internet Explorer 11.  
See also [WebView.SetInternetExplorerHiDPI](WebViewSetInternetExplorerHiDPI.md).  
### Examples

Set version to IE 11:

 Set Variable \[ $r ; Value: MBS ( "Webview.SetInternetExplorerVersion"; 11000 ) \]  
### See also

- [WebView.Evaluate](WebViewEvaluate.md)
- [WebView.GetInternetExplorerHiDPI](WebViewGetInternetExplorerHiDPI.md)
- [WebView.GetInternetExplorerVersion](WebViewGetInternetExplorerVersion.md)
- [WebView.PostURL](WebViewPostURL.md)
- [WebView.SetInternetExplorerHiDPI](WebViewSetInternetExplorerHiDPI.md)

### Release notes

- **Version 12.2**
    - Fixed [WebView.SetInternetExplorerVersion](https://www.mbsplugins.eu/WebViewSetInternetExplorerVersion.shtml) and [WebView.SetInternetExplorerHiDPI](https://www.mbsplugins.eu/WebViewSetInternetExplorerHiDPI.shtml) to return OK on success instead of the new setting as documented.

### Blog Entries

- [MBS FileMaker Plugin, version 12.2pr5](https://www.mbsplugins.de/archive/2022-05-04/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.4pr9](https://www.mbsplugins.de/archive/2016-09-24/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)
- [Select Internet Explorer version for FileMaker](https://www.mbsplugins.de/archive/2016-09-21/Select_Internet_Explorer_versi/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th September 2016 , last changed 12nd March 2022

  
[WebView.SetInternetExplorerHiDPI](WebViewSetInternetExplorerHiDPI.md) - [WebView.SetMediaVolume](WebViewSetMediaVolume.md)

[HTML Version](WebViewSetInternetExplorerVersion.shtml)