my requirement is when I click to download a file, new tab opens. If the file exists, it will start download and if not, it should close the new tab and show error message.
I have used
window.close()
and it's working fine. Except that, IE11 asks for confirmation :
"the webpage you are viewing is trying to close the tab. Do you want to close this tab?"
this interrupts functionality of system and user does not know why it happened.
Any solution on this?
I have stated the whole scenario so that you can give a solution for any stage.
Thank you.