Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.

Javascript: Alert Message



<html>
<head>
<title>Alert Message</title>

<script language="javascript">
function alertmessage()
{
var num=document.form1.num.value;
alert("Your Entered Number is " + num);
}
</script>

</head>
<body>
<h1>Enter the number between 1 to 100</h1>

<form name="form1">
Enter a Numebr <input type="text" size=3 maxlength="3" name="num">
<input type="button" onclick="alertmessage();" value="Enter">
</form>

</body>
</html>

No comments:

Post a Comment

Google