2.3.1.7 behavior

Quirks Mode, IE7 Mode, IE8 Mode, and IE9 Mode (All Versions)

behavior of type DOMString

Sets or retrieves how the text scrolls in the marquee.

Possible values are:

  • scroll – Default. Marquee scrolls in the direction specified by the direction property. The test scrolls off the end and starts over each time.

  • alternate – Marquee scroll direction reverses when its content reaches the edge of the container.

  • slide – Marquee scrolls in the direction specified by the direction property. Text scrolls to the end and stops.

This attribute extends the HTMLMarqueeElement interface.