---
id: "P:cAlgo.API.WebViewNavigationCompletedEventArgs.WebView"
kind: "property"
type: "T:cAlgo.API.WebViewNavigationCompletedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/WebView/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# WebViewNavigationCompletedEventArgs.WebView

Member of [WebViewNavigationCompletedEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/index.md).

## WebView

The WebView control.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never raised in the CLI: the events that pass it never fire there (WebView.NavigationCompleted).
- Cloud: Never raised in the cloud: the events that pass it never fire there (WebView.NavigationCompleted).

C#:

```csharp
public WebView WebView {get;}
```

Python:

```python
webViewNavigationCompletedEventArgs.WebView: WebView
```

### Returns

`WebView` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    var webView = new WebView();
    webView.NavigationCompleted += OnNavigationCompleted;
    Chart.AddControl(webView);
    webView.NavigateAsync("https://ctrader.com/");
}

private void OnNavigationCompleted(WebViewNavigationCompletedEventArgs args)
{
    args.WebView.ExecuteScriptAsync("document.body.style.zoom = '80%'");
}
```

Python:

```python
def on_start(self):
    webView = WebView()
    webView.NavigationCompleted += self.on_navigation_completed
    api.Chart.AddControl(webView)
    webView.NavigateAsync("https://ctrader.com/")

def on_navigation_completed(self, args):
    args.WebView.ExecuteScriptAsync("document.body.style.zoom = '80%'")
```

