write a variable from javascript to html code example Example: js variable html <div onload="document.innerHTML(name + ' is ' + age)">