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