I\'m having a problem always when I\'m trying to close a window through the window.close() method of the Javascript, while the browser displays the below messag
window.close()
The below code worked for me :)
window.open('your current page URL', '_self', ''); window.close();