title: How to stop page from redirecting without event in Javascript or jQuery?
body: <p>I have an ajax plugin with a load of ajax files from a tag. When user clicks on it I don't see it to redirecting to the other page. Although we stop redirecting page using events like:</p>
  <pre><code>$(button).click(function (e) {
      e.preventDefault();
  })
  </code></pre>
  <p>I want a function that stop page from redirecting without events.</p>
  <pre><code>function functionName() {
     functiontostopredirect(); // I need a function like this.
  }
  </code></pre>