I want to ask how I can print a Javascript variable in HTML form (e.g. output it on the screen)?
Here is my JS code:
Try this,
your HTML
js Script
var howLongIsThis = myPlayer.duration(); document.getElementById("logId").value=howLongIsThis; document.getElementById("logId1").innerHTML=howLongIsThis;
hope this will give you an idea to solve your problem