In Microsoft Edge, window.close() is not working in child windows after closing a print dialog.

nagireddy jonnala 1 Reputation point
2022-06-20T13:24:42.76+00:00

function home_Done(src){
// No need to do anything with src. Just display index.html again
window.open(homeRootPath + "index.html", "", "width=0,height=0,top=0,left=0,menubar=no,status=yes,toolbar=no,resizable=yes");
window.close(); - it shows warning in Edge console that “Scripts may close only the windows that were opened by them”.
}

Microsoft Edge | Microsoft Edge development
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.