The Message Box Again.

Staying on the subject of the message box, we take it a little step further.

Type something and then click Show It


What were doing.

As you can see, what has been done is that, the text you feed into the form has been placed into an alert message box. This is a little more complicated than last box, but still relitivly simple. Lets take a look at the coding.


I have colour coded the 3 major parts of the script and will explain how they work
Ends the script and stops the hiding.


doit
" type="text">
This part of the form draws out the part where you will enter your text. What ever you call your form will need to be the same in the second part. This is shown better from where I have highlighted them blue. What this is doing is passing on all the data that is put in this form onto the javascript and thus writing your text.
SayMe(form.doit.value)">
The onClick is to call the function, and the extra coding is information that has to be passed on. What the brackets are used for. Basically what it is sayng is: Pass the data from the form doit and pass it to the function SayMe. This will then do what you told it to do, ie alert box.

Hosted by www.Geocities.ws

Thats it so far!!!� I hope it was helpful.� Keep coming back for more updates.


Back | Site Map

Hosted by www.Geocities.ws

1