dcsimg

Lesson 23: The Script and Its Effect



The Script

<SCRIPT LANGUAGE="JavaScript">

function readit()
{
alert("You wrote " + document.myform.thebox.value + " in the box.")
}
</SCRIPT>

<FORM NAME="myform">
Write something in the box.
<INPUT TYPE="text" NAME="thebox">
<INPUT TYPE="button" VALUE="Then Click Here" onClick="readit()">
</FORM>

 

The Script's Effect

Write something in the box.

 

Back to the Index Page