title: javascript: how can I stop a function after specific time from calling it
body: <p>simply I want to stop a function after specific time like 5 seconds from calling it.</p>
  
  <p>I couldn't find a way to do it, can somebody help me</p>
  
  <pre><code>function popUp() {
      // Do some Thing 
      });
  popUp();
  // how to stop popUp() after calling it after 5 seconds from calling it??
  </code></pre>