Name
LOOP — NN n/a IE 3 HTML n/a
Synopsis
LOOP=integer
Optional
Defines the number of times the sound plays. If the attribute is
absent or is present with any value other than -1
,
the sound plays at least once. Assigning a value of
-1
means that the sound plays until the page is
unloaded. Contrary to Microsoft’s Internet Explorer SDK
information, there does not appear to be a way to precache the sound
without having it start playing.
Example
<BGSOUND SRC="tunes/mazeppa.mid" LOOP=3>
Value
No value assignment necessary for a single play. A value of
0
still causes a single play. Values above zero
play the sound the specified number of times. Assign
-1
to have the sound play indefinitely.
Default
-1
Object Model Reference
- IE
[window.] document.all.tags(“bgsound”)[0].loop
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.