You could use…
hypeDocument.getElementById('MyElement_id').innerHTML = MyVariable;
Thanks for the advice! Let me see if I follow correctly…
var right = 3;
var wrong = 2;
hypeDocument.getElementById(‘currentScoreText’).innerHTML = “Current Score: " + right + " of " + (wrong + right) + " correct”;
The output in the textbox should be: Current Score: 3 of 5 correct
Should that work?
Perfecto! it will return “Current Score: 3 of 5 correct”
I just tested it. It worked perfectly. Thanks!