Many sample codes dealing with key stroke event have the first line of code as the following:
I would just use
What is the code "(event) ? event : null" for?
My guess is that it is trying to get the variable from the document event rather than the form field event. Am I right?
In Firefox, if I just use "event" directly I will get an error.
Seaport
Code:
function KeyChecker(evt) {
evt = (evt) ? evt : ((event) ? event : null);
//some other code
}
Code:
evt = (evt) ? evt : null
What is the code "(event) ? event : null" for?
My guess is that it is trying to get the variable from the document event rather than the form field event. Am I right?
In Firefox, if I just use "event" directly I will get an error.
Seaport