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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access