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