I have two pages which are naming FATHER & CHILD PAGE.
FATHER PAGE opens CHILD PAGE using Javascript code:window.open().
Now, I would like to close FATHER PAGE from CHILD PAGE using window.opener.close().
In first time to open Chrome or MS Edge browser, CHILD PAGE CANNOT close FATHER PAGE using window.opener.close(), but it works when exists several pages in the same time and same browser instance.
How to close FATHER PAGE from CHILD PAGE when browser is opened in first time without other pages in the browser?
FATHER PAGE:
window.open('CHILD PAGE','_blank');
CHILD PAGE:
window.opener.close();