How set JavaScript variable value in HTML? code example Example: js variable html <div onload="document.innerHTML(name + ' is ' + age)">