Feb 29
Here is a simple javascript for a prompt box
<html>
<head>
<script type=”text/javascript”>
function disp()
{
var name=prompt(”Please enter your name”);
if (name==”ramanean”&&name=”Ramanean”)
{
document.write(”Hello ” + name + “Are you fine?”);
}
}
</script>
</head>
<body>
<input type=”button” onclick=”disp” value=”Display a prompt box” />
</body>
</html>
The above code will display a prompt box “Hello Ramanean Are you fine?” when display prompt box is clicked