Saturday 17 January 2015

How to prompt your site



 







<html>
<head>
<script>
function f1()
{
v1= prompt("Enter Your Name :")
document.write("<center><h1>Hi "+v1+" welcome to JAVASCRIPT!!!</h1></center>")
}
</script>
</head>
<body onLoad="f1()">

</body>
</html>




No comments:

Post a Comment