Please click <a onclick="self.close();" href="#">here</a> to close this window.
this is my code .
when i submit in chrome and mozilla it shows the error.
" script must not be allowed to close a window that was not opened by that same script."
I tried with
function quitBox(cmd)
{
if (cmd=='quit')
{
open(location, '_self').close();
}
return false;
}
but it does not work for me
window.open('', '_parent', '');
window.close();
and also with this script.
how i close the tab on clicking the close tab.