WebView.IsLoading
-----------------

This function returns True if the Specified web viewer is still loading.

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

MBS( "WebView.IsLoading"; WebViewerRef ) 

**MBS**( **"WebView.IsLoading";** /\* This function returns True if the Specified web viewer is still loading. \*/  
**$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

This function returns True if the Specified web viewer is still loading.   
This useful if you need to delay making a javascript call to WebViewer until it it is done loading.  
If you use this in a loop to wait for WebViewer, please exit loop when this function doesn't return a 1. So you exit also when an error occurs.  
For websites which load more data (e.g. pictures) while you surf the page, the plugin will not notice that.  
### Examples

Check loading state for WebViewer named web

 MBS ( "WebView.IsLoading"; "web")  
Wait for WebViewer to finish loading

 # first give FileMaker some time to load   
Pause/Resume Script \[Duration (seconds): ,3\]  
  
\# now wait until it is fully finished   
Loop  
 Exit Loop If \[MBS ("WebView.IsLoading"; "web") ≠ 1\]  
 Pause/Resume Script \[Duration (seconds): ,1\]  
End Loop  
### See also

- [WebView.ClickInput](WebViewClickInput.md)
- [WebView.Create](WebViewCreate.md)
- [WebView.Evaluate](WebViewEvaluate.md)
- [WebView.FindByName](WebViewFindByName.md)
- [WebView.PrintToFile](WebViewPrintToFile.md)
- [WebView.RunJavaScript](WebViewRunJavaScript.md)
- [WebView.SetFormInputValue](WebViewSetFormInputValue.md)
- [WebView.StopLoading](WebViewStopLoading.md)

### Example Databases

- [CURL/WebServices/Twitter oAuth](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Twitter%20oAuth.shtml#2ScriptAnchor_)
- [WebViewer/WebViewer Copy Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20Copy%20Text.shtml#1ScriptAnchor_)
- [WebViewer/WebViewer MarkDown/WebViewer MarkDown](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20MarkDown/WebViewer%20MarkDown.shtml#2ScriptAnchor_)

### Blog Entries

- [Control interactive containers in FileMaker](https://www.mbsplugins.de/archive/2023-12-19/Control_interactive_containers/monkeybreadsoftware_blog_filemaker)
- [WebViewer preferences](https://www.mbsplugins.de/archive/2021-01-21/WebViewer_preferences/monkeybreadsoftware_blog_filemaker)
- [Login in FileMaker web viewer if needed](https://www.mbsplugins.de/archive/2019-03-08/Login_in_FileMaker_web_viewer_/monkeybreadsoftware_blog_filemaker)
- [Print WebViewer on macOS in FileMaker](https://www.mbsplugins.de/archive/2017-11-28/Print_WebViewer_on_macOS_in_Fi/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 3/2024, Seite 33 bis 34](https://filemaker-magazin.de/neuigkeit/4263-Appetithappen-FMM_202403)
- [Ausgabe 2/2024, Seite 17](https://filemaker-magazin.de/neuigkeit/4257-Appetithappen-FMM_202402)

This function checks for a license.

Created 18th August 2014 , last changed 20th January 2025

  
[WebView.InstallUserMediaAccess](WebViewInstallUserMediaAccess.md) - [WebView.List](WebViewList.md)

[HTML Version](WebViewIsLoading.shtml)