# ExternalEval(string)

> Execution of a script function in the contained web page.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Deprecated.** Application.ExternalEval is deprecated. See [https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html](https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html) for alternatives.

```csharp
public static void ExternalEval(string script)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The Javascript function to call.

### Remarks

The HTML Javascript host page can have functions executed. The [Application.ExternalEval](/engine/6000.5/script-reference/unityengine/application/externaleval.md) function specifies which function should be executed.

This functionality is now obsolete. For alternative approaches, refer to [Interaction with browser scripting](/engine/6000.5/manual/platform-specific/webgl/develop/interactingwithbrowserscripting.md).

**Note:** The Web Player is obsolete.

Additional Resources: [Application.ExternalCall](/engine/6000.5/script-reference/unityengine/application/externalcall.md).
