JavaScript Reference/Javascript Methods/stop

Материал из Web эксперт
Перейти к: навигация, поиск

"stop()" Example

    
<html>
<body>
<script language="JavaScript">
    function function1(){
        document.all.myMarquee.stop();
    }
    function function2(){
        document.all.myMarquee.start();
    }
</script>
<marquee align="left" id="myMarquee" bgcolor="red" width="300">
    Sample Text
</marquee>
<input type="button" value="Start" onClick="function2();">
<input type="button" value="Stop" onClick="function1();">
</body>
</html>



"stop()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<marquee>                                                     |
+----------------+--------------------------------------------------------------+



"stop()" Syntax, Parameters and Note

Note:
Stops playing the <marquee> element.
    
Syntax:
    
document.all.marqueeID.stop()