JavaScript can react to events. Like the click of a button:
Put your name:
Show Name Below
Your Name is
innerHTML
Using innerHTML
After loaded, document.write()
This is an alert
console.log()
window.print()