Code de Event onblur in fld2
onblur=doReplace();
From: "Frank Nicolazzo Sr." <tgifn@n...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Sunday, April 07, 2002 12:01 PM
Subject: [javascript_howto] Trigger a function from within another function
> Is there any way to trigger a function without a button.
>
> Here is what I am tryimg to do.
>
> Students type into two fields.
>
> fld1 is an incorrect word from a paragraph they have read.
>
> fld2 is the CORRECT replacement word for error wrd in fld1
>
> I compare fld1 and fld2 to insure they match. If they match then REPLACE
> the error word in the paragraph using a TEXT FLD.
>
> Currently this can and is being done using a button to do the function
> doReplace(form).
> I do not want the student to have to push abutton.
> I want to trigger it without the button and from within the The Compare
> function.
>
> Hope this can be done
>
>
> Frank Nicolazzo Sr.
> tgifn@n...
>
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>