onbounce event | bounce event
Occurs when the contents of a marquee element touch one side of the marquee element's bounding rectangle.
The onbounce event is fired only if the behavior property of the marquee element is set to 'alternate'. In other cases if the marquee element starts looping the contents and at the start of every new iterating, the onstart event is fired.
How to register:
|object.onbounce = handler;|
|object.addEventListener ("bounce", handler, useCapture);|
|object.attachEvent ("onbounce", handler);|
You can find the related objects in the Supported by objects section below.
The event object is accessible to all event handlers in all browsers. The properties of the event object contain additional information about the current event. To get further details about these properties and the possible event handler registration methods, please see the page for the event object.
Actions that invoke the onbounce event:
- When the contents touch one side of a marquee element.
Example HTML code 1:
This example illustrates the use of the onbounce event:
Did you find this example helpful?
User Contributed Comments