action="whatever.asp" onsubmit="return go(this)">From a form action, I am calling a javascript function with the form object. However, the this syntax doesn't seem to work. I have to pass document.forms instead.
>...FORM NAME=Sujet ACTION=javascript:Go(this) > >< SCRIPT> >function Go(toForm) >{ > alert(toForm.MyField.value); >} >>
>...FORM NAME=Sujet ACTION=javascript:Go(document.forms.Sujet) > >< SCRIPT> >function Go(toForm) >{ > alert(toForm.MyField.value); >} >>