title: how do i forever run a function in javascript
body: <p>I wrote an image slider script in <strong>javascript</strong> but the the problem is the slider function is running only one time . I want to run forever the slider function . I tried to loop the function with this code:</p>
  
  <pre><code>function abc(){  //Function for image slider
      //Slider codes here 
  }
  
  for(count = 0; count &lt;= 6; count++){  //Forever loop
      count = 0;
      abc();  //Call the slider function
         if(count == 0){
               abc();  //Return call the function
         }
  }else{
  }
  </code></pre>
  
  <p><strong>Please tell me what was the prblem in my script ?</strong></p>