Windows apps
Collapse the table of content
Expand the table of content

finish | onfinish event

Fires when marquee looping is complete.

Syntax

HTML Attribute <element onfinish = "handler(event)">
Event Property object.onfinish = handler;
addEventListener Method object.addEventListener("finish", handler, useCapture)

Event information

SynchronousNo
BubblesNo
CancelableYes

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.

Remarks

A value greater than 1 and less than infinity must be set on the LOOP attribute for this event to fire.

Marquee ceases to loop.

To invoke this event, do one of the following:

  • Specify a value for the LOOP attribute of the marquee object.

Examples

The example uses the srcElement property of the event object to determine which marquee has fired the onfinish event.


<body>
<label>mqLooper1</label>
<marquee id="mqLooper1" loop="2" 
    onfinish="console.log(event.srcElement.id + ' finished looping.')"> 
this marquee loops twice </marquee> 
<hr>
<label>mqLooper2</label>
<marquee id="mqLooper2" loop="5" 
onfinish="console.log(event.srcElement.id + ' finished looping.')"> 
this marquee loops five times </marquee>
</body>

See also

Reference
loop
onstart

 

 

Send comments about this topic to Microsoft

Build date: 8/22/2013

Show:
© 2016 Microsoft