Close currently opened tab
<p>I've tried <code>window.close();</code> to close the currently opened tab but it does not seem to work. What am I doing wrong? My scope is to run a JavaScript script that automatically closes a manually opened tab. </p>

<p>Thanks.</p>
