- Messages
- 36
- Country
Hello guys.
As you know P3D v5.1 is now supporting HTML5 with JavaScript just like MSFS2020
I want to try to write and read value from some L var just like an example, but SDK doesn't help much
So below is basic HTML setup for gauge. Does anyone know syntax to use functions VarGet and VarSet inside of script tags?
For instance my variable is: L:TestVar,number
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<p>JavaScript can change the content of an HTML element and variable value:</p>
<script>
</script>
</body>
</html>
As you know P3D v5.1 is now supporting HTML5 with JavaScript just like MSFS2020
I want to try to write and read value from some L var just like an example, but SDK doesn't help much
So below is basic HTML setup for gauge. Does anyone know syntax to use functions VarGet and VarSet inside of script tags?
For instance my variable is: L:TestVar,number
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<p>JavaScript can change the content of an HTML element and variable value:</p>
<script>
</script>
</body>
</html>