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

start method (marquee)

Browser support:
Starts to scroll the current marquee element.
To stop the scrolling, use the stop method.

Syntax:

object.start ( );
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