Skip to content
Related Articles

Related Articles

HTML | Marquee stop Method

View Discussion
Improve Article
Save Article
  • Last Updated : 15 Jul, 2022

The Marquee stop method in HTML is used to stop the scrolling. To start the scrolling use start() method

Syntax:

Object.stop()

Note: This property is depreciated from HTML 5.

Return value: This method has no return value. 

Example: 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>Marquee stop Method</title>
    <style>
        .main {
            text-align: center;
        }
    </style>
</head>
 
<body>
    <h1 style="color:green; text-align:center;">
      GeeksforGeeks
  </h1>
    <div class="main">
        <marquee id="marID"
                 bgcolor="Green"
                 direction="left"
                 loop="">
            Scrolling
        </marquee>
        <br />
        <input type="button"
               onclick="marID.start()"
               value="start">
       
        <input type="button"
               onclick="marID.stop()"
               value="Stop">
    </div>
</body>
 
</html>

Output:

  

Supported Browsers: The browsers supported by HTML Marquee stop Method are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!