<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div id="message">
Hello
</div>
<script id="javascript">
var name = prompt("Enter Your Name","");
document.getElementById('message').innerHTML += name;
</script>
</body>
</html>User Input
Enter Your Name?
Akshay
Output
Hello Akshay
