When we use window.close() it works in IE,but in Chrome and Firefox following error comes
Scripts may not close windows that were not opened by script
Is there any workaround in MVC to close browser on button click
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pappu DewanganPosted Mar 1, 2016, 2:06 AM
Rajeev PunhaniPosted Mar 1, 2016, 1:23 AM
Hi Pappu,
please add this
Pappu DewanganPosted Mar 1, 2016, 1:11 AM
Rajeev PunhaniPosted Mar 1, 2016, 12:05 AM
Hi Pappu,
Please try the below script.