JavaScript window.close Won't Close the Window

from blog Blog on hjr265.me, | ↗ original
I learned something new today. In JavaScript within the web browser, window.close will not close the window if it was not opened using window.open or is a top-level window (or tab) with at one history entry. That is what the documentation of window.close says. It got in the way. I was adding a page endpoint that I would link to. The link would...