Hello. I have this basic html page setup:
<html>
<body>
<p>
Name: <span id="jname"></span>
Age: <span id="jage"></span>
</p>
<script>
var JSONObject = { "name":"John Johnson", "age":23 };
document.getElementById("jname").innerHTML=JSONObject.name
document.getElementById("jage").innerHTML=JSONObject.age
</script>
</body>
</html>
I have uploaded it to my public dropbox, and it works like a normal website.
How would I go about modifying the ‘JSONObject’ variable via unity JavaScript, so like i can modify a varible in the unity script and the web page varibles will change (planning to do some kind of leader board)… If anyone can provide me a basic example or anything it would be greatly appreciated