You are here: Reference > JavaScript > client-side > HTML DOM > methods > stop (marquee)

stop method (marquee)

Browser support:
Stops the scrolling of the current marquee element.
To start the scrolling, use the start method.

Syntax:

object.stop ( );
You can find the related objects in the Supported by objects section below.

Return value:

This method has no return value.

Example HTML code 1:

This example shows how to start and stop the scrolling of a marquee:
<head>
    <script type="text/javascript">
        function StartMarquee (){
            var marquee = document.getElementById ("marquee");
            marquee.start ();
        }
        function StopMarquee (){
            var marquee = document.getElementById ("marquee");
            marquee.stop ();
        }
    </script>
</head>
<body>
    <marquee id="marquee" scrollamount="20">Hi There!</marquee>
    <button onclick="StopMarquee ();">Stop!</button>
    <button onclick="StartMarquee ();">Start!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content