<HTML>

<HEAD>

<TITLE>Beatle Picker</TITLE>

<SCRIPT LANGUAGE="JavaScript">

 

function processData(form) {

   

 

 

//    chosenVal is going to hold the value that you entered into the text box

 

   

    var chosenVal = form.entry.value

 

            if (chosenVal == 4)

                                    {

                                                document.write("You have Entered Number 4!!!");

                                    }

    alert("Looking to see if " + chosenVal + " was written by ...")

}

function checkEntry(entryVal) {

    var enteredVal = entryVal.value

           

 

    alert("Making sure that " + enteredVal + " was recorded by the items.")

}

</SCRIPT>

</HEAD>

<BODY>

 

 

<FORM>

Enter a Value:

 

<INPUT TYPE="text" NAME="entry" VALUE="value" onChange="checkEntry(this)"><P>

 

<INPUT TYPE="button" NAME="process" VALUE="Process Request..." onClick="processData(this.form)">

 

</FORM>

</BODY>

</HTML>

 

 

<!--

 

<html>

<head>

<title> A doc to show Javascript

</title>

 

<script language="JavaScript">

function processData(myform)

            {

                        //    chosenVal is going to hold the entry from the text field

 

                        var chosenVal = document.Passthrough.choice.value;

                        var chosenVal = parseInt(chosenVal,10);

                        // document.write("Hello World Wide Web!" + document.Passthrough.choice.value + chosenVal);

 

                        if (chosenVal == 4)

                                    {

                                                document.write("You have Entered Number 4!!!");

                                    }

            }

 

function checkEntry(option)

       {

                        var enteredVal = option.value;

                        alert("Making sure that " + enteredVal + " is good.");

            }

 

 

 

 

</script>

 

 

</head>

 

<body>

<center>

<h1>

 

 

 

 

<FORM id ="Passthrough">

 

Enter a Value:

<INPUT TYPE=”text” NAME=”choice” VALUE=" " onChange="checkEntry(this)">

 

<INPUT TYPE="button" NAME="process" VALUE="Process Request..." onClick="processData(Passthrough)">

 

</FORM>

 

 

</h1>

</center>

</body>

</html>

-->