Hello to All:
I am new to java script, so this problem that I have should be easy for you guys and gals to solve.?
Ok, here is my problem with the alert method: I am having a rough time trying to find the correct sytax that will create an Alert box with the words that the users enters in to the text box? In other words, I want to make the words the user enters inside a text box on web-page display on to the Alert box after the user leaves the text field. I have inserted the onchange which does make the alert box appear, however, the Alert box will show the word that the user types in. Below is a code that I have so far.
<script type=”text/javascript”>
<!–
function contactInformation()
{
alert(“Your Name: ” + )
}
//–>
</script>
<input type=”text” name=”name” size=”50″ id=”name” onchange=”contactInformation ()” />