[Javascript] Event "Handlers" (Literally)
Gee, David
dgee at freemarkets.com
Thu May 27 09:07:39 CDT 2004
Why wouldn't you just wrap the event handler into a function?
form.onsubmit = myFunc;
input.onchange = myFunc;
function myFunc(e) {
if(window.event) {e=window.event}
...
}
david
-----Original Message-----
From: Flavio Gomes [mailto:flavio at economisa.com.br]
Sent: Thursday, May 27, 2004 10:00 AM
To: [JavaScript List]
Subject: [Javascript] Event "Handlers" (Literally)
Hello Everyone,
I searched for "event handler" hoping to find something actually would
allow me to handle when the event occurs, but what I found was what to
do when the event occurs.. like onclick="alert('Oh!! I was clicked')".
And I wanted to do was something like this:
<input type=text onchange="this.form.onSubmit();">
I want to call an "event handler" on another "event handler", does
anybody know how to?
Ps.: The above solution form.onSubmit didn't actually worked..
Thanks in Advance,
---
Flavio Gomes
flavio at economisa.com.br
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list