'loop' Syntax and Note : loop « Javascript Properties « JavaScript Reference

'loop' Syntax and Note

Note:

Read and write property. 
Sets the number of times the object will loop. 

For the <marquee> element,            a value of 0 or -1 (the default) 
                                      will cause the element to loop indefinitely. 
-----------------------------------------------------------------------------------
For the <bgsound>,                    a value of 0 will cause the element to loop once,
<img>, <input>, and                   and a value of -1 will cause it to loop indefinitely
<image> elements,                     (the default value is 1).
    
Syntax:
    
document.all.elementID.loop = value

    

      
      








Related examples in the same category

1.'loop' Example
2.'loop' is applied to