Single Action, Multiple Events? -or- Multiple Actions with a Twist

by "Miles Underwood" <mrunder(at)mmcable.com>

 Date:  Wed, 13 Dec 2000 21:54:11 -0600
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original

Hi All,

This undoubtedly has been covered, but it's late and I've looked in the
archives back to 12/99 with no luck.
I know you can create multiple actions for a single JavaScript event. That's
not my problem.
Is there a 'compact' way to specify multiple event triggers for a single
JavaScript action?

I'm trying to follow WAI Double-A specs in regards to JavaScript and events
handlers.
(Using redundant 'onmouseover' and 'onfocus' for JavaScript event handlers
since 'onfocus' doesn't work correctly for both mouse and keyboard.)

Is there a shorthand way to script both triggers without writing out both?
     i.e.
<A HREF="foo.bar" onmouseover (AND) onfocus="someaction()">
     vs.
<A HREF="foo.bar" onmouseover="someaction()" onfocus="someaction()">

Please tell me this is possible...

Miles Underwood

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA