JavaScript
<html>
<head>
<title> Personalising Home Page</title>
</head>
<body bgcolor="pink">
<font size="+6" text color="Red">
<center>
<script type="text/javascript">
var userName;
userName=prompt("Please enter your name");
document.write("Hello "+userName+", Welcome to this website");
</script>
</center>
</font>
</body>
</html>

No comments:
Post a Comment