title: Javascript stop execution abort or exit
body: <pre><code>if(a.value==1 &amp;&amp; b.value==2)
  {
      try{callFunc()  }catch(e) {} 
  }
  frm.submit();
  </code></pre>
  
  <p>Inside <code>function callFunc()</code>, what do I have to write so that execution completely stops?
  It should not execute <code>frm.submit();</code></p>
  
  <pre><code>function callFunc()
  {
      //stop execution here -- ensure it won't execute fm.submit()
  }
  </code></pre>