Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<button onclick="function1()">click</button>
<div id="test"></div>
<script>
function function1() {
var lang = prompt("Please enter your text", "Javascript");
if (lang != null) {
document.getElementById("test").innerHTML =
"This is the world of " + lang;
}
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507