# Application Version - WebGL

**URL:** https://discussions.unity.com/t/application-version-webgl/928868
**Category:** Web
**Tags:** Question
**Created:** [September 11, 2023, 8:11am UTC](https://discussions.unity.com/t/application-version-webgl/928868 "2023-09-11T08:11:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MatrixNew](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/matrixnew/32/894236_2.png) [@MatrixNew](https://discussions.unity.com/u/MatrixNew)
#### Post date: [September 11, 2023, 8:11am UTC](https://discussions.unity.com/t/application-version-webgl/928868/1 "2023-09-11T08:11:46Z")

</div>

![](https://europe1.discourse-cdn.com/unity/original/4X/6/4/3/64315bfd630c23986021bb1f2e81d648c000ca30.png)  
In the program settings in “version” I specify the version “0.13”  
 ![](https://europe1.discourse-cdn.com/unity/original/4X/6/4/3/64315bfd630c23986021bb1f2e81d648c000ca30.png)  
When creating a build, a generated html file that indicates the version of the build (red arrow)  
Since I’m using a different html file, is there any way to get the build version from the “Build/EnD.loader.js” file?

---

<div class="post-metadata">

### Author: ![CodeSmile](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/codesmile/32/82968_2.png) [@CodeSmile](https://discussions.unity.com/u/CodeSmile)
#### Post date: [September 11, 2023, 11:02am UTC](https://discussions.unity.com/t/application-version-webgl/928868/2 "2023-09-11T11:02:00Z")

</div>

Application.version in C#  
If you need the version in JS use the usual JS-C# interface to either pass the version to a JS function call or use JS to request the version from the C# API.

---

<div class="post-metadata">

### Author: ![MatrixNew](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/matrixnew/32/894236_2.png) [@MatrixNew](https://discussions.unity.com/u/MatrixNew)
#### Post date: [September 12, 2023, 5:53am UTC](https://discussions.unity.com/t/application-version-webgl/928868/3 "2023-09-12T05:53:49Z")

</div>

Is there any example of how to get the build version in an html/js file?

---

<div class="post-metadata">

### Author: ![mgear](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mgear/32/886412_2.png) [@mgear](https://discussions.unity.com/u/mgear)
#### Post date: [September 12, 2023, 6:20am UTC](https://discussions.unity.com/t/application-version-webgl/928868/4 "2023-09-12T06:20:34Z")

</div>

> **[Unity - Manual: Interaction with browser scripting](https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html)**

alternatives could be,

- custom postbuild script, that copies version.txt into build folder (that you can then read with js)
- or that custom onpostprocessbuild could inject version code into your current template (replace placeholder string)
- or if you have your own template inside Assets/webgltemplates/ folder, can use “PRODUCT\_VERSION” tag [Unity - Manual: WebGL templates](https://docs.unity3d.com/Manual/webgl-templates.html)

---

<div class="post-metadata">

### Author: ![MatrixNew](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/matrixnew/32/894236_2.png) [@MatrixNew](https://discussions.unity.com/u/MatrixNew)
#### Post date: [September 12, 2023, 5:16pm UTC](https://discussions.unity.com/t/application-version-webgl/928868/5 "2023-09-12T17:16:35Z")

</div>

**[mgear](https://forum.unity.com/members/mgear.22727/) - thx a lot!**
