Copy And Paste . . .Enjoy
<html>
<head>
<script type="text/javascript">
function con()
{
var name=prompt("Please enter your name","Kamal Vaid");
if (name!=null && name!="")
{
var x="Hello " + name + "! How are you today?";
}
}
</script>
</head>
<body>
<form>
<input type="button" onclick="con()" value="Kamal site">
</form>
</body>
</html>
No comments:
Post a Comment