Skip to end of metadata
Go to start of metadata

This function retrieves the target element of an event and allows you to create reusable JavaScript code.

Parameters:

  • event - the browser's event object

Example:

The following functions can be attached to multiple elements' onmouseover and onmouseout events to create a nice hover effect:

Labels
  • No labels