Skip to content
Permalink
866595c936
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (21 sloc) 612 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body onload="greet()">
<h1>Welcome to My Website</h1>
<div class = "container">
<p id = "paragraph"></p>
</div>
<script>
function greet(){
var name = prompt("Hello! Please enter your name: ");
document.getElementById("paragraph").innerHTML = "Hello " + name + "! Welcome to my website.";
}
</script>
</body>
</html>