_javascript_ event handlers aren't lines of code, they are function
definitions.  When setting the event handers with HTML attributes, you
just specify the body of the function, and the rest is taken care of
automatically. When you specify the event handlers with _javascript_,
you need to actually assign it a function:

function myFunc() {
  // do whatever
}
document.getElementById("formID").>
OR

document.getElementById("formID"). {
  // do whatever
};

cheers,
barneyb

On Fri, 27 Aug 2004 17:11:18 -0400, DURETTE, STEVEN J (AIT)
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there anyway to edit the value that is in the onsubmit portion of a form
> tag?  I know you can to formname.action="" to change the action,
> but I need to change the onsubmit and I can't get it to work.
>
> Every time I change it, it acts like there is nothing there.
>
> Thanks,
> Steve
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to