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.
In reply to Re: Am I javascript or not?
by dws
in thread Am I javascript or not?
by boo_radley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |