Specific JavaScript Not working in Mozilla Firefox
<p>After selecting the check box I'm submitting the form and i want to close the window if the checkbox is checked. Below is the code; it is working in IE but not working in Mozilla Firefox.</p>

<pre><code>try {
  window.close();
  $('#submitFrm').submit();
} catch (err) { }
</code></pre>
