how to apply javascript veriabal value to html page code example Example: js variable html <div onload="document.innerHTML(name + ' is ' + age)">