in reply to Am I javascript or not?
This also "future proofs" the code against the possiblity of someone's browser adding yet another new event.my $attr = shift; my @found = { grep /^on[A-Z]/ } keys %$attr;
Update: D'oh. Make that my @found = { grep /^on/ } keys %$attr; since the attributes all come back lower-case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Am I javascript or not? (boo)
by boo_radley (Parson) on Mar 30, 2002 at 18:43 UTC |