Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

bounce | onbounce event

Fires when the behavior property of the marquee object is set to "alternate" and the contents of the marquee reach one side of the window.

Syntax

HTML Attribute <element onbounce = "handler(event)">
Event Property object.onbounce = handler;
attachEvent Method object.attachEvent("onbounce", handler)

 

Event information

SynchronousNo
BubblesNo
CancelableYes

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.

Remarks

The marquee contents begin to scroll in the opposite direction.

To invoke this event, do one of the following:

  • Cause the marquee contents to loop.

The pEvtObj parameter is required for the following interfaces:

Examples

This example shows how to display an alert each time the onbounce event occurs.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/onbounceEX.htm


<body>
<marquee id=mqBounce behavior=alternate
    onbounce="alert('onbounce fired')" loop=3 
		width=200>Marquee text
</marquee>
</body>

See also

marquee
behavior

 

 

Show:
© 2017 Microsoft