I have opened a window from another page. On button click, I want to close this window. However, the browser is complaining that "Scripts may close only the windows that were opened by it".
I tried:
window.open('', '_parent', '');
window.close();
but its not working. Please help.